v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Update a gift

This endpoint gives possibility to update delivery details of a given gift that was previously purchased.

patch/gifts/{giftId}

Path parameters

giftIdinteger required

Gift identifier at Cleeng. It can be retrieved from the transaction list (targetId).

Headers

Content-Typestring

Request body

Response

200

idinteger
codestring
offerIdstring
{"stackTrail":"paths:/gifts/{giftId}:patch:responses:200:content:application/json:schema:properties:sentAt","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/gifts/{giftId}:patch:responses:200:content:application/json:schema:properties:redeemedAt","oasType":"schema","type":"unknown"}

Example response

{
  "id": 123456789,
  "code": "AAAA-BBBB",
  "offerId": "S123123123_PL",
  "deliveryDetails": {
    "personalNote": "Happy birthday",
    "recipientEmail": "johndoe@test.com",
    "deliveryDate": 1691193600
  }
}