Skip to main content
POST
Sell a gift card

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Headers

Idempotency-Key
string

Retry-safe key; a repeat of the same request replays the first response

Maximum string length: 255

Body

application/json
contactId
integer
required

The member who buys it

amount
number
required

What each card holds

Required range: x >= 0.01
paymentMethodDefinitionId
integer
required

How the buyer paid (a manual method from the payment methods)

productId
integer

The gift card product; the organization's only one when left out

price
number

What each card costs, when less than it holds

Required range: x >= 0.01
reason
string

Why it is sold for less. Required with a lower price

Required string length: 1 - 500
quantity
integer
default:1
Required range: 1 <= x <= 20
clubId
integer

Where the sale is made; the product's club, or the organization's only one, when left out

recipientName
string
Maximum string length: 120
recipientEmail
string<email>

Also email it here

senderName
string
Maximum string length: 120
message
string

Printed on the card

Maximum string length: 500
sendAt
string<date-time>

When to email the recipient; now when left out

Response

Gift cards sold and paid

orderId
integer
total
number

What was charged and paid

giftCards
object[]