Skip to main content
POST
/
api
/
v1
/
zapier
/
actions
/
send_voucher
Send Gift Card Voucher
curl --request POST \
  --url https://api.ugift.me/api/v1/zapier/actions/send_voucher \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "productCode": "AMAZON-GIFT-001",
  "merchant": "Amazon UK",
  "currency": "GBP",
  "valuePurchased": 50,
  "recipientEmail": "[email protected]",
  "recipientName": "John Recipient",
  "message": "Thank you for your business!"
}
'
{
  "success": true,
  "action": "send_voucher",
  "data": {
    "id": "voucher_12345",
    "productCode": "AMAZON-GIFT-001",
    "merchant": "Amazon UK",
    "currency": "GBP",
    "valuePurchased": 50,
    "recipientEmail": "[email protected]",
    "recipientName": "John Recipient",
    "message": "Enjoy your gift!",
    "status": "sent",
    "voucherCode": "AMZ-VOUCHER-ABC123",
    "sentAt": "2024-01-15T10:30:00Z",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Authorizations

X-API-Key
string
header
required

Your uGiftme business API key for authentication.

Format: UUID format (e.g., 6b4e22b2-c0a5-4c7a-888a-b38eac20b454) Required: All endpoints require this header Permissions: Must have business-level access with Zapier integration permissions

Example: X-API-Key: 6b4e22b2-c0a5-4c7a-888a-b38eac20b454

Body

application/json
productCode
string
required

Product code for the gift card

Required string length: 3 - 50
Example:

"AMAZON-GIFT-001"

merchant
string
required

Name of the merchant

Required string length: 1 - 100
Example:

"Amazon UK"

currency
enum<string>
required

Currency code (ISO 4217)

Available options:
GBP,
USD,
EUR
Example:

"GBP"

valuePurchased
number
required

Amount to purchase

Required range: 0.01 <= x <= 10000
Example:

50

recipientEmail
string<email>
required

Email address to send voucher to

recipientName
string

Name of the recipient (optional)

Maximum string length: 100
Example:

"John Recipient"

message
string

Custom message for recipient

Maximum string length: 500
Example:

"Thank you for your business!"

Response

Voucher sent successfully

success
boolean
required

Indicates if the voucher was sent successfully

Example:

true

action
string
required

The action that was executed

Example:

"send_voucher"

data
object