revenue-v2

Record revenue attribution for a message

Links revenue to a specific message and offer.

post/v2/revenue

Request

  • Base URL: https://api.tracklysms.com/api
  • URL: https://api.tracklysms.com/api/v2/revenue
  • Auth: API key in header X-Api-Key

Request body

attribution_typestring required

How the revenue should be attributed: sale, click, send

message_idstring required

Opaque, variable-length message identifier. Same value passed in the {{sendId}} macro

offer_idstring

Offer ID (Can be either the "externalId" or the offerId generated by TracklySMS

revenuenumber required

Finite signed revenue amount; replaces the prior source amount

timestampstring date-time

Conversion time, assumed UTC without a timezone. Omission preserves an existing time; new records use observation time.

Response

Revenue recorded

message_idstring

Message ID

revenuenumber

Revenue amount

successboolean

Operation success

Changes

No recorded changes to this operation across all 1 revision of this API.