Skip to main content
POST
/
advertisers
/
{advertiserID}
/
transactions
Record Payment
curl --request POST \
  --url https://api.embedads.com/advertisers/{advertiserID}/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "amount_tax": 123,
  "currency": "<string>",
  "type": "<string>",
  "authorized_to_spend": true,
  "receipt_url": "<string>"
}'
[
    {
        "advertiser_id": 123,
        "id": 456,
        "created_at": "2020-01-01T00:00:00Z",
        "type": "PAYMENT",
        "amount": 100,
        "amount_tax": 10,
        "receipt_url": "https://example.com/receipt"
    }
]

Path Parameters

advertiserID
string
required
The ID of the advertiser.

Body Parameters

amount
number
required
The amount of the transaction.
amount_tax
number
required
The amount of tax for the transaction.
currency
string
required
The currency of the transaction. Must be specified as "USD".
type
string
required
The type of transaction. Must be specified as "PAYMENT".
authorized_to_spend
boolean
required
Certifies that the advertiser is allowed to spend the funds, and must be specified as true to create a transaction.
receipt_url
string
The URL of the receipt for the transaction.

Response

advertiser_id
number
The ID of the advertiser.
id
number
The ID of the transaction.
created_at
string
A timestamp of when the transaction was created.
type
string
The type of transaction.
amount
number
The amount of the transaction.
amount_tax
number
The amount of tax for the transaction.
receipt_url
string
The URL of the receipt for the transaction.
[
    {
        "advertiser_id": 123,
        "id": 456,
        "created_at": "2020-01-01T00:00:00Z",
        "type": "PAYMENT",
        "amount": 100,
        "amount_tax": 10,
        "receipt_url": "https://example.com/receipt"
    }
]