Skip to main content
PATCH
/
partner
/
v1
/
cards
/
{cardId}
Update card status, limits, or labels
curl --request PATCH \
  --url https://api.machines.cash/partner/v1/cards/{cardId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "ok": true,
  "data": {
    "cardId": "<string>",
    "status": "active",
    "last4": "<string>",
    "expirationMonth": 123,
    "expirationYear": 123,
    "encryptedName": {
      "v": 1,
      "iv": "Qz4f2m7Hk1P9x0ab",
      "ct": "Hdbb2yT2F4xWZL5m5bJX3eJb4n8wVhjPzqLw2h7i"
    },
    "isPinned": true,
    "sortOrder": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "brand": "VISA",
    "limit": {
      "amountCents": 5000,
      "frequency": "perAuthorization"
    },
    "encryptedColor": {
      "v": 1,
      "iv": "Qz4f2m7Hk1P9x0ab",
      "ct": "Hdbb2yT2F4xWZL5m5bJX3eJb4n8wVhjPzqLw2h7i"
    },
    "encryptedEmoji": {
      "v": 1,
      "iv": "Qz4f2m7Hk1P9x0ab",
      "ct": "Hdbb2yT2F4xWZL5m5bJX3eJb4n8wVhjPzqLw2h7i"
    },
    "encryptedMemo": {
      "v": 1,
      "iv": "Qz4f2m7Hk1P9x0ab",
      "ct": "Hdbb2yT2F4xWZL5m5bJX3eJb4n8wVhjPzqLw2h7i"
    },
    "folderId": "<string>",
    "contractId": "<string>"
  },
  "summary": "<string>",
  "errors": [
    {
      "code": "invalid_request",
      "message": "missing required field",
      "field": "<string>"
    }
  ],
  "next": {
    "pollAfterMs": 1,
    "suggestedTool": "<string>",
    "suggestedArgs": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Open-Responses
enum<string>

Return Open Responses-compatible output when set (replaces the default response envelope).

Available options:
1,
true
X-Open-Responses-Call-Id
string

Tool call id used for function_call_output items when Open Responses mode is enabled.

Minimum string length: 1

Path Parameters

cardId
string
required

Machines card id.

Minimum string length: 8

Body

application/json
status
enum<string>
Available options:
active,
locked,
canceled,
not_activated
limit
object
encryptedName
object

Optional encrypted card label. Generate with POST /encryption/encrypt.

encryptedColor
object

Optional encrypted card color. Generate with POST /encryption/encrypt.

encryptedEmoji
object

Optional encrypted card emoji. Generate with POST /encryption/encrypt.

encryptedMemo
object

Optional encrypted card memo. Generate with POST /encryption/encrypt.

folderId
string | null
isPinned
boolean
sortOrder
integer

Response

Card updated

ok
boolean
required
data
object
required
summary
string
required
errors
object[]
required
next
object