Requests

Data sent must be properly UTF-8 URL-encoded. By default, browsers will properly encode POST calls. However, if you are writing your own client, you will need to make sure to set the HTTP Content-Type header to application/x-www-form-urlencoded if you are form-encoding your request bodies or application/json if you are JSON-encoding your request bodies. If you are uploading a file as part of your request, you will need to specify multipart/form-data.

In some cases, clients do not support PUT and DELETE methods. In these cases, you can override the actual HTTP method by appending the _method parameter via a POST request. Valid values are PUT and DELETE.

Unless otherwise stated, request parameters have the following restrictions:

TypeRestriction
string255 UTF-8 characters
decimal8 digits, 2 decimal places
datetimeISO-8601 (e.g. 2020-10-09T10:30:01−07:00)
currencyISO-4217 (e.g. USD)
integer16 digits

URL Encoding


curl 'https://api.impact.com/Mediapartners/<AccountSID>/Actions' \
	-X POST \
	-H 'Content-Type: application/x-www-form-urlencoded'
	-d 'OrderId=MyTestOrderId'

Method Overloading


curl 'https://api.impact.com/Mediapartners/<AccountSID>/Actions/ActionId=1017.3295.188200' \
	-d '_method=DELETE' \
	-G