Skip to main content
POST
/
v2
/
giftcards
/
programs
/
{programId}
/
cards
/
{cardId}
/
transfer
Transfergiftcardbalance
curl --request POST \
  --url https://api.loyalty.dog/v2/giftcards/programs/{programId}/cards/{cardId}/transfer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "securityCode": "<string>",
  "destinationCardNumber": "<string>",
  "amount": 2500.005,
  "description": "<string>",
  "referenceId": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "transferId": "<string>",
  "sourceCard": {
    "id": "5eb7cf5a86d9755df3a6c593",
    "cardNumber": "<string>",
    "remainingBalance": "<string>"
  },
  "destinationCard": {
    "id": "5eb7cf5a86d9755df3a6c593",
    "cardNumber": "<string>",
    "newBalance": "<string>"
  },
  "amountTransferred": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

idempotency-key
string | null
X-Eposn-Customer-Token
string | null
X-Eposn-Merchant-Token
string | null

Path Parameters

programId
string | null
required
Required string length: 24
Pattern: ^[0-9a-f]{24}$
Example:

"5eb7cf5a86d9755df3a6c593"

cardId
string | null
required
Required string length: 24
Pattern: ^[0-9a-f]{24}$
Example:

"5eb7cf5a86d9755df3a6c593"

Body

application/json
securityCode
string
required
Required string length: 6
destinationCardNumber
string
required
Maximum string length: 20
amount
required
Required range: 0.01 <= x <= 5000
description
string | null
Maximum string length: 500
referenceId
string | null
Maximum string length: 100

Response

Successful Response

success
boolean
required
message
string
required
transferId
string
required
sourceCard
TransferBalanceSourceCard · object
required
destinationCard
TransferBalanceDestCard · object
required
amountTransferred
string
required