Skip to main content
POST
/
v1
/
ucp
/
orders
/
{id}
/
adjustments
Record adjustment
curl --request POST \
  --url https://api.getsly.ai/v1/v1/ucp/orders/{id}/adjustments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "discount",
  "amount": "<string>",
  "reason": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "type": "discount",
    "amount": "<string>",
    "reason": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

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:
discount,
surcharge,
refund,
fee_change
amount
string
required
reason
string
required

Response

201 - application/json

Adjustment recorded

data
object
required