POST /v1/pricing-scheme-values/

Create Pricing Scheme Value

application/json

Body

Request for creating a pricing scheme value

  • seasonId string Required

    Season ID

  • quantity integer Required

    Quantity / Count to meet criteria for scheme

  • price integer Required

    Price in pence, for $15.00 enter 1500

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      id

    • companyId string Required

      Company ID

    • seasonId string Required

      Season ID

    • quantity integer Required

      Quantity

    • price integer Required

      Price

    • deletedAt string(date-time) | null

      Deleted at date

    • createdAt string(date-time)

      Created at date

    • updatedAt string(date-time)

      Updated at date

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 422 application/json

    Validation error

    Hide response attributes Show response attributes object
    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

POST /v1/pricing-scheme-values/
curl \
 --request POST 'https://localhost/v1/pricing-scheme-values/' \
 --header "Content-Type: application/json" \
 --data '{"seasonId":"sea_xxxxxxxxxxxx","quantity":1,"price":1000}'
Request examples
{
  "seasonId": "sea_xxxxxxxxxxxx",
  "quantity": 1,
  "price": 1000
}
Response examples (200)
{
  "id": "psv_xxxxxxxxxxx",
  "companyId": "co_123123123123",
  "seasonId": "sea_123123123123",
  "quantity": 10,
  "price": 100,
  "deletedAt": "2023-12-05 14:30:41",
  "createdAt": "2023-12-05 14:30:41",
  "updatedAt": "2023-12-05 14:30:41"
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (422)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}