Body

Body

Body

Responses

PUT /external/api/discount-codes
curl \
 -X PUT http://test.api.fygi.store/external/api/discount-codes \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '[{"id":"string","value":"string"}]'
curl \
 -X PUT http://test.api.fygi.store/external/api/discount-codes \
 -H "authorization: $API_KEY" \
 -H "Content-Type: text/json"
curl \
 -X PUT http://test.api.fygi.store/external/api/discount-codes \
 -H "authorization: $API_KEY" \
 -H "Content-Type: application/*+json"
Request examples
[
  {
    "id": "string",
    "value": "string"
  }
]
Request examples
[
  {
    "id": "string",
    "value": "string"
  }
]
Request examples
[
  {
    "id": "string",
    "value": "string"
  }
]
Response examples (200)
{
  "id": 42,
  "value": "string"
}
Response examples (200)
{
  "id": 42,
  "value": "string"
}