Skip to main content
POST
/
v1
/
ucp
/
orders
/
{id}
/
expectations
Add expectation
curl --request POST \
  --url https://api.getsly.ai/v1/v1/ucp/orders/{id}/expectations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "shipping",
  "expected_at": "2023-11-07T05:31:56Z",
  "description": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "type": "shipping",
    "expected_at": "2023-11-07T05:31:56Z",
    "status": "pending",
    "description": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).

Path Parameters

id
string
required

Body

application/json
type
enum<string>
required
Available options:
shipping,
digital_delivery,
fulfillment
expected_at
string<date-time>
required
description
string

Response

201 - application/json

Expectation recorded

data
object
required