Menu
Update Gift Certificate
Update Gift Certificate
PATCH
/organizations/{organizationId}/gift-certificates/{merchantId}Use it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Gift Certificate action (under Gift Certificates (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateGiftCertificate.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"amount": null,
"balance": {},
"creationDate": 1578516896.641,
"description": "A gift certificate for birthday.\n",
"enabled": true,
"lastModified": 1578516896.641,
"maskedGiftCertificateCode": "*******XQTY",
"merchantId": "Macy's1256489\n",
"message": "This gift certificate is to be given as birthday present\n",
"orderNo": "MyOrder5421\n",
"recipientEmail": "my-recipient-email@gmail.com\n",
"recipientName": "Jane Doe\n"
}
Response
Returns 200 with an object. Read it in later steps with {{updateGiftCertificate.response.data.<field>}}.
{
"amount": null,
"balance": {},
"creationDate": 1578516896.641,
"description": "A gift certificate for birthday.\n",
"enabled": true,
"lastModified": 1578516896.641,
"maskedGiftCertificateCode": "*******XQTY",
"merchantId": "Macy's1256489\n",
"message": "This gift certificate is to be given as birthday present\n",
"orderNo": "MyOrder5421\n",
"recipientEmail": "my-recipient-email@gmail.com\n",
"recipientName": "Jane Doe\n"
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?