BizKitHub
DocsAPI ReferenceOrder/bff/order/remove-customer
postOrderAdmin BFF

/bff/order/remove-customer

Removes the shop__order_customer row for the given contact + order. Refuses to remove the LAST linked contact — operator must add a replacement first. When the removed contact was the primary, the earliest-added remaining contact is auto-promoted and shop__order.customer_id is updated to match.

OrderpostBffOrderRemove-customer

Parameters

JSON body

Request body

application/json
hashstringRequired

Unique order hash identifier.

cuRefNostringRequired

16-char customer reference number to detach.

Response schema

1 status code documented

200Success
successbooleanRequired
Default: true
promotedContactIdnumberOptional

Response example

application/json
{
  "success": true,
  "promotedContactId": 0
}

Request example

POST /bff/order/remove-customer

post
curl -X POST "https://api.bizkithub.com/bff/order/remove-customer" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "hash": "example_hash",
  "cuRefNo": "example_cuRefNo"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key