Create an action inquiry

Creates an action inquiry by setting the values of the required parameters. The required parameters will need to be passed or else the action inquiry will fail to create.


CampaignId required

Unique identifier for the campaign (or Program) that this action inquiry is in.

OrderId required

Your unique identifier for the consumer order associated with this conversion. For example, with a standard retail event type, this value would be the order number the consumer receives when they converted. An OrderId (or Oid) is only required to be unique to the event type (or action tracker) that tracked this conversion.

TransactionDate required

Date and time when the transaction occurred, expressed in ISO 8601 format.

TransactionAmount required

Revenue amount associated with this action.

InquiryType required enum

The reason this action inquiry was submitted.

Possible enum values
UNTRACKEDAction wasn't tracked for the partner.
INCORRECTAction was incorrectly tracked. Refer to the notes left by the partner in the Comments attribute.
DECLINEDAction was wrongly declined.

MediaPartnerInquiryId optional

Unique identifier for the partner that created the action inquiry.

ResolutionDeadlineDate optional

Date and time of the deadline that a partner expects to receive a resolution for this action inquiry, expressed in ISO 8601 format. For loyalty partners, this typically represents an SLA to their customers.

ExpectedPayout optional

Payout amount that the partner expected to receive for the action.

TrackingLink optional

The tracking link used by the partner that lead to this action.

CustomerId optional

A unique identifier for the customer.

InquiryDate optional

Date and time when the inquiry occurred, expressed in ISO 8601 format.

InquiryNotes optional

These are the notes left by the partner when submitting an inquiry.

Example request

curl '<AccountSid>/ActionInquiries' \
  -X POST \
  -u '<AccountSID>:<AuthToken>' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'CampaignId=782287' \
  -d 'OrderId=O12345' \
  -d 'TransactionDate=2021-04-01T00:10:00Z' \
  -d 'TransactionAmount=100' \
  -d 'InquiryType=INCORRECT'

Example response

  "Status": "OK",
  "Uri": "/Mediapartners/<AccountSID>/ActionInquiries/1407290"