Staff: issue a gift card with a reason. The code is returned once and emailed when an address is given

post/api/v1/gift-cards

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/gift-cards
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Request body

amount_minorinteger required
product_idstring
reasonstring required
recipient_namestring
recipient_emailstring
purchaser_namestring
purchaser_emailstring
messagestring
client_idstring
expiry_monthsinteger
deliver_onstring date
send_emailboolean
idempotency_keystring required

Stable retry key. A replay returns the original result.

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.