Create recurring account
Creates a recurring account that can be used to create recurring payments. Once an account is created and activated it can be used to create periodical payments, typically to pay for a subscription.
The response will contain a token that is used to activate the account through the client API, and an account id that is used to create recurring payments.
Request
your-authorization
should be replaced with your Authorization header, see Accessyour-user-id
in the URI, should be replaced with your identifier of the usermerchantId
in the request body, identifies the merchant that the recurring payments should be made for
POST /v1/users/{your-user-id}/recurring-accounts
Content-Type: application/json
Accept: application/json
Authorization: $(your-authorization)
Request Body schema: application/json
Recurring account
object (RecurringAccountCreateDto) | |||
|
application/json
{- "account": {
- "merchantId": "merchantId"
}
}
Response
Success
Response Schema: application/json
object (RecurringAccountDto) | |||||||||||||||||||
| |||||||||||||||||||
token | string |
application/json
{- "account": {
- "merchantId": "merchantId",
- "id": "id",
- "status": "CREATED"
}, - "token": "token"
}
Error responses
Please refer to our HTTP response codes and Error codes to learn what error responses you may expect from the API.
Example
- curl
- Python
- Java
- C#
- Node.js
Try it
Loading...