Transfer credit token

POST
https://api.octopush.com/v1/public/subaccount/credit-transfer/token

Encoding : UTF-8

Authentication

Your “api-key” and “api-login” must be added in the headers.

Definition

To transfer credit to one of your sub-accounts, you must first obtain a token. This will be dedicated to the transfer to the indicated sub-account.

Special parameters

NameTypeDescription
email_tostringEmail of the sub-account to which you wish to transfer the credit.

Curl Example

curl -X POST \ 
'https://api.octopush.com/v1/public/subaccount/credit-transfer/token' \ 
-H 'Content-Type: application/json' \ 
-H 'api-key: ************' \ 
-H 'api-login: ******@email.org' \ 
-H 'cache-control: no-cache' \ 
-d '{
  "email_to": "xxxxxxx@sub-accounts.com"
}'

JSON Server Response

Success : 201 Created

{
  "token": "**************************"
}