Update Primary Account
This endpoint allows the ability to update the primary account for the customer.
| PUT /customers/<token>/accounts/primary
|
In addition to the query parameter, this endpoint requires a JSON body be posted.
Path Param |
Type |
Required |
Description |
token |
string |
Required |
The security token for the customer |
JSON Prop |
Type |
Required |
Description |
accountId |
long |
Required |
Unique identifier of the account to be made primary |
Output
This endpoint returns an HTTP response indicating success (200) or failure (500).
Example
Request
| PUT /api/v1/customers/C1FA3C38-1B28-4B54-A2F8-E577FFEEF9F5/accounts/primary
|
Response