POST
/
customers
/
{customerId}
/
actions
/
update-status
{
  "type": "CUSTOMER_STATUS_UPDATE_SUCCESS",
  "message": "Customer status updated successfully",
  "status": "ACTIVE"
}

Authorizations

Authorization
string
headerrequired

The access token.

Headers

x-fabric-tenant-id
string

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-request-id
string

A UUID of the request.

Path Parameters

customerId
string
required

A 24-character system-generated ID of the customer. This is returned in the response of the POST /customers endpoint.

Body

application/json
status
enum<string>

The status of the customer's account.

Available options:
ACTIVE,
INACTIVE,
BLOCKED

Response

200 - application/json

The details of customer's status.

type
string
required

A machine-readable code.

message
string
required

A human-readable message corresponding to type.

status
enum<string>

The customer's account status.

Available options:
ACTIVE,
INACTIVE,
BLOCKED