POST
https://api.octopush.com/v1/public/subaccount/credit-transfer/tokenEncoding : 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
Name | Type | Description |
---|---|---|
email_to | string | Email 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": "**************************" }