Skip to main content
POST
/
v1
/
upsertAnrokApiToken
Upsert Anrok API token
curl --request POST \
  --url https://api.metronome.com/v1/upsertAnrokApiToken \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "delivery_method_ids": [
    "9a906ebb-fbc7-42e8-8e29-53bfd2db3aca"
  ],
  "anrok_api_token": "s123/sak456/secret.789"
}'
{
  "data": {
    "success": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Set the Anrok API token for some specified delivery_method_ids

delivery_method_ids
string[]
required

The delivery method IDs of the billing provider configurations to update, can be found in the response of the /listConfiguredBillingProviders endpoint.

anrok_api_token
string
required

The Anrok API token that is added to the configuration.

Response

Success

data
object
required