POST /adjustment-reasons.json

POST /adjustment-reasons.json
application/json

Body Required

  • code string Required

    Code

  • name string Required

    Name

  • showInReturnsPortal boolean | null Required

    Show in returns portal

    Default value is true.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • code string Required

      Code

    • createdAt string(date-time)

      Created at

    • id integer(int32)

      Id

    • name string Required

      Name

    • showInReturnsPortal boolean | null Required

      Show in returns portal

      Default value is true.

    • updatedAt string(date-time)

      Updated at

POST /adjustment-reasons.json
curl \
 --request POST 'http://api.example.com/v1/adjustment-reasons.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"code":"string","name":"string","showInReturnsPortal":true}'
Request examples
{
  "code": "string",
  "name": "string",
  "showInReturnsPortal": true
}
Response examples (200)
{
  "code": "string",
  "createdAt": "2025-05-04T09:42:00Z",
  "id": 42,
  "name": "string",
  "showInReturnsPortal": true,
  "updatedAt": "2025-05-04T09:42:00Z"
}