Skip to main content
PATCH
Update a gift card order

Authorizations

x-api-key
string
header
required

Your API key, starting with ct_key_.

x-api-secret
string
header
required

Your API secret, starting with ct_secret_.

Path Parameters

id
string<uuid>
required

Order ID.

Body

application/json

Send only the fields to change. null clears a nullable field.

orderDate
string<date>

YYYY-MM-DD.

Example:

"2026-10-01"

orderTime
string | null

HH:mm or HH:mm:ss, in your local time.

Pattern: ^(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d{1,6})?)?$
Example:

"14:30"

retailer
string

Store name, such as Best Buy.

Minimum string length: 1
Example:

"Best Buy"

orderNumber
string

Must be unique across your orders. Surrounding spaces are trimmed.

Required string length: 1 - 100
Example:

"BBY01-123456"

shipping
integer

Shipping in cents. Defaults to 0.

Required range: x >= 0
tax
integer

Tax in cents. Defaults to 0.

Required range: x >= 0
Example:

4800

discount
integer

Discount in cents. Defaults to 0.

Required range: x >= 0
payments
object[]

The cards the order was paid with, its own card first. Splitting an order across cards adds more payments, each with an amount.

Maximum array length: 5
retailerAccount
string | null

The retailer account the order was placed with, such as its email.

Maximum string length: 100
notes
string | null
Maximum string length: 1000
redemptionCodes
object[]

Gift card codes, vouchers, or credits for the order. Write-only: responses don't include them. Your plan's per-order limit applies.

Maximum array length: 50
platform
string

Resale platform: aligned_incentives, card_center, card_cash, qgcg, or one of your custom platforms.

Required string length: 1 - 100
Example:

"card_cash"

status
enum<string>
Available options:
purchased,
submitted,
partially_paid,
issue,
paid,
cancelled
Example:

"purchased"

orderLineItems
(object | Existing line item · object)[]

Replaces the whole list and recalculates the subtotal. An item with an id updates that line item, keeping fields you omit. An item without an id is new and needs every required field. Line items left out are removed.

Required array length: 1 - 10 elements

Response

The updated order.

data
object
required