Skip to content

Update Primary Account

This endpoint allows the ability to update the primary account for the customer.

1
PUT /customers/<token>/accounts/primary

Input Parameters

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

1
PUT /api/v1/customers/C1FA3C38-1B28-4B54-A2F8-E577FFEEF9F5/accounts/primary
1
2
3
{
   "accountId":988271
}

Response

1
200 OK