PATCH
/
cardproduct
/
{id}
curl --request PATCH \
  --url https://api.treasuryprime.com/cardproduct/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "card_controls": {
    "card_controls": {
      "controls": [
        {
          "amount": "3000.00",
          "interval": "rolling",
          "type": "spend_limit",
          "version": 1,
          "window": 1
        }
      ],
      "name": "example_control1"
    }
  }
}'
{
  "card_auth_loop_endpoint_id": null,
  "card_back_image_file_id": null,
  "card_controls": {
    "card_controls": {
      "controls": [
        {
          "amount": "3000.00",
          "interval": "rolling",
          "type": "spend_limit",
          "version": 1,
          "window": 1
        }
      ],
      "name": "example_control1"
    }
  },
  "card_front_image_file_id": null,
  "created_at": "2021-02-09T18:58:31Z",
  "id": "cdpt_zuhqnmz7e085",
  "status": "active",
  "three_domain_secure_config": null,
  "type": "virtual",
  "updated_at": "2021-02-09T18:58:31Z",
  "userdata": null
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Unique identifier for object

Body

application/json
The cardproduct to update
card_auth_loop_endpoint_id
string

The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction

card_controls
object

An object that defines rules for how this card can be used

three_domain_secure_config
object

An object defining 3DS configuration

userdata
object

Optional arbitrary user data

Response

200 - application/json
The cardproduct updated
card_auth_loop_endpoint_id
string

The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction

card_back_image_file_id
string

The ID of a File object containing the image defining the design for the back of the card, if applicable

card_controls
object

An object that defines rules for how this card can be used

card_front_image_file_id
string

The ID of a File object containing the image defining the design for the front of the card, if applicable

configuration
object

An object defining additional card configuration

id
string

Unique identifier for object

name
string

Optional name used to identify the object

status
string

One of: active, inactive. Filterable.

three_domain_secure_config
object

An object defining 3DS configuration

type
string

One of: physical, virtual. Filterable.

userdata
object

Optional arbitrary user data