Post v1 negotiablecarts cart id gift cards
Body
-
Gift Card Account data
POST /V1/negotiable-carts/{cartId}/giftCards
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/negotiable-carts/{cartId}/giftCards \
-d '{"giftCardAccountData":{"gift_cards":["string"],"gift_cards_amount":42.0,"base_gift_cards_amount":42.0,"gift_cards_amount_used":42.0,"base_gift_cards_amount_used":42.0,"extension_attributes":{}}}'
Request examples
{
"giftCardAccountData": {
"gift_cards": [
"string"
],
"gift_cards_amount": 42.0,
"base_gift_cards_amount": 42.0,
"gift_cards_amount_used": 42.0,
"base_gift_cards_amount_used": 42.0,
"extension_attributes": {}
}
}
Response examples (200)
true
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}