{
"topic": "giftcard",
"trigger": "giftcard.requested",
"id": 12345,
"total_credit_issued": "23.50",
"gift_card_subtotal": "25.00",
"gift_card_tax": "0.50",
"gift_card_bonus_credit": "1.00",
"currency": "USD",
"return_id": 23456,
"email": "eliza@example.com",
"first_name": "Eliza",
"last_name": "Strawberry",
"external_order_id": 1234567890,
"external_order_name": "#2234",
"external_order_number": 1234,
"presentment": {
"total_credit_issued": "23.50",
"gift_card_subtotal": "25.00",
"gift_card_tax": "0.50",
"gift_card_bonus_credit": "1.00",
"currency": "CAD"
}
}Webhook Payloads
Gift card
WEBHOOK
GiftCardRequested
{
"topic": "giftcard",
"trigger": "giftcard.requested",
"id": 12345,
"total_credit_issued": "23.50",
"gift_card_subtotal": "25.00",
"gift_card_tax": "0.50",
"gift_card_bonus_credit": "1.00",
"currency": "USD",
"return_id": 23456,
"email": "eliza@example.com",
"first_name": "Eliza",
"last_name": "Strawberry",
"external_order_id": 1234567890,
"external_order_name": "#2234",
"external_order_number": 1234,
"presentment": {
"total_credit_issued": "23.50",
"gift_card_subtotal": "25.00",
"gift_card_tax": "0.50",
"gift_card_bonus_credit": "1.00",
"currency": "CAD"
}
}For Shopify-native gift card issuance, Loop can also write gift card details to
a Shopify order metafield. See
Shopify Gift Card Order Metafield.
Body
application/json
Webhook type
Example:
"giftcard"
Event that triggered the webhook
Example:
"giftcard.requested"
Loop gift card ID, null in the case of auto out-of-stock gift cards
Example:
12345
Total credit issued
Example:
"23.50"
Gift card value minus taxes and bonus
Example:
"25.00"
Gift card tax applied, "0.00" if no taxes applied
Example:
"0.50"
Gift card bonus credit applied, "0.00" if no bonus applied
Example:
"1.00"
Currency of the gift card values
Example:
"USD"
Loop return ID
Example:
23456
Customer email address
Example:
"eliza@example.com"
Customer first name
Example:
"Eliza"
Customer last name
Example:
"Strawberry"
External order ID
Example:
1234567890
External order name
Example:
"#2234"
External order number
Example:
1234
Gift card credit values reported in the customer-facing (presentment) currency.
Show child attributes
Show child attributes
Response
200
Return a 200 status to indicate that the data was received successfully