Skip to content
Home » Octopush Gateway SMS API » API Sub-Accounts » Transfer credit token

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": "[email protected]"
}'

JSON Server Response

Success : 201 Created

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