Skip to main content
POST
/
schedules
/
adjustments
cURL
curl --request POST \
  --url https://api.juo.io/customer/v1/schedules/adjustments \
  --header 'Content-Type: application/json' \
  --header 'X-Delegated-Token: <api-key>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --data '
{
  "matcher": {
    "type": "CYCLE",
    "input": {
      "cycle": 1
    }
  },
  "action": {
    "type": "SKIP_ORDER",
    "input": {
      "reason": "<string>"
    }
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resource": "schedule_adjustment",
  "customer": "<string>",
  "matcher": {
    "type": "<string>",
    "input": "<unknown>"
  },
  "action": {
    "type": "<string>",
    "input": "<unknown>"
  },
  "actor": {
    "type": "staff",
    "id": "<unknown>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-Delegated-Token
string
header
required

Headers

X-Tenant-ID
string
required

Unique identifier of the tenant in the system (usually a store identifier)

Body

application/json
matcher
object
required

Match by cycle number

action
object
required

Skip an order in the schedule

Response

201 - application/json

Default Response

id
string<uuid>
required

The adjustment identifier

resource
enum<string>
required
Available options:
schedule_adjustment
customer
string
required

The customer identifier

Minimum string length: 1
matcher
object
required
action
object
required
actor
object
required
createdAt
string<date-time>
required

Creation date of the adjustment

updatedAt
string<date-time>
required

Last update date of the adjustment