card

Bulk update card permissions

Enable or disable multiple spending permissions on a card in a single request.

This is the recommended endpoint for updating card permissions as it allows updating multiple permissions atomically.

patch/v4/spend/profiles/{profileId}/cards/{cardToken}/spending-permissions

Path parameters

profileIdinteger required

The ID of the profile that owns the card.

cardTokenstring uuid required

The unique token identifying the card.

Headers

X-External-Correlation-Idstring uuid

Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.

Request body

Example request

{
  "permissions": [
    {
      "type": "ECOM"
    }
  ]
}

Response

Permissions updated successfully.

Changes

Changed in 1 of the 5 revisions of this API.2

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 422

      response-non-success-status-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog