POST
/
customers
/
{customerId}
/
actions
/
update-status
curl --request POST \
  --url https://api.fabric.inc/v3/customers/{customerId}/actions/update-status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "ACTIVE"
}'
{
  "type": "CUSTOMER_STATUS_UPDATE_SUCCESS",
  "message": "Customer status updated successfully",
  "status": "ACTIVE"
}

Authorizations

Authorization
string
header
required

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
A sample request to update customer's account status.
status
enum<string>

The status of the customer's account.

Available options:
ACTIVE,
INACTIVE,
BLOCKED

Response

200
application/json
Customer status update response

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