PUT /external/api/discount-codes

PUT /external/api/discount-codes

Body

  • id string Required

    Minimum length is 1.

  • value string | null
  • Additional properties are NOT allowed

Body

  • id string Required

    Minimum length is 1.

  • value string | null
  • Additional properties are NOT allowed

Body

  • id string Required

    Minimum length is 1.

  • value string | null
  • Additional properties are NOT allowed

Responses

  • Success

    Hide response attributes Show response attributes object
    • id integer(int32)
    • value string | null
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id integer(int32)
    • value string | null
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id integer(int32)
    • value string | null
    • Additional properties are NOT allowed
PUT /external/api/discount-codes
curl \
 --request PUT 'https://api.fygi.store/external/api/discount-codes' \
 --header "authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '[{"id":"string","value":"string"}]'
curl \
 --request PUT 'https://api.fygi.store/external/api/discount-codes' \
 --header "authorization: $API_KEY" \
 --header "Content-Type: text/json"
curl \
 --request PUT 'https://api.fygi.store/external/api/discount-codes' \
 --header "authorization: $API_KEY" \
 --header "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"
}