PATCH
/
customers
/
authorization
/
{id}
curl --request PATCH \
  --url https://api.sulu.sh/v0/customers/authorization/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "pending",
  "customerId": "<string>"
}'
{
  "id": "<string>",
  "status": "pending"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for the authorization session.

Body

application/json
status
enum<string>
required

The current status of the authorization session.

Available options:
pending,
completed,
expired
customerId
string

The unique identifier for the customer associated with the authorization session.

Response

200
application/json
Authorization session updated successfully
id
string
required
status
enum<string>
required
Available options:
pending,
completed,
expired