Skip to main content
POST
/
advertisers
/
{advertiserId}
/
accounts
Assign account
curl --request POST \
  --url https://api.interchange.io/api/v2/buyer/advertisers/{advertiserId}/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "storefrontId": 42,
  "sourceId": "src_main",
  "accountId": "acc_67890"
}
'
{
  "data": null,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "field": "<string>",
    "details": {}
  }
}

Authorizations

Authorization
string
header
required

API key or access token

Path Parameters

advertiserId
string
required

Unique identifier for the advertiser

Minimum string length: 1
Example:

"12345"

Body

application/json

Request body for assigning a source account to an advertiser

storefrontId
integer
required

Storefront the source lives on. Pair with sourceId.

Required range: x <= 9007199254740991
Example:

42

sourceId
string
required

Inventory source within storefrontId to register this account against.

Minimum string length: 1
Example:

"src_main"

accountId
string
required

Account ID at the source to assign to this advertiser. Must come from list_available_accounts.

Minimum string length: 1
Example:

"acc_67890"

credentialId
string

Credential ID returned by list_available_accounts. Required when the same account ID is exposed by more than one mapped connection.

Example:

"42"

billingType
string

Billing arrangement type for this account (e.g. "advertiser", "operator", "agent"). Defaults to the source's default billing type.

Example:

"advertiser"

Response

Assign account