GoodInboxes Developers
API reference
</>API reference

Cancel a pending BYOD connection

POST
/api/v1/domains/{id}/disconnect

Check setup and cancel an eligible existing-domain connection before activation.

Requires the separate customer API write flag. A changed preview or ineligible connection returns a conflict.

Required scope: domains:disconnect:write.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Scoped GoodInboxes API token

Path Parameters

id*string

Owned resource UUID.

Request Body

application/json
  1. body
preorderDomainId*string

Exact connection attempt ID from the preview.

expectedAmountCents*integer

Exact wallet refund amount from the preview in USD cents.

Range0 <= value <= 2147483647
consent*boolean

True after approval of the domain, pending inbox cancellation and exact refund.

Response Body

Confirmed cancellation and its wallet credit receipt. Exact retries recover the saved receipt without a second refund.

application/json
  1. response
data*

Confirmed cancellation and its wallet credit receipt. Exact retries recover the saved receipt without a second refund.

requestId?string
curl -X POST "https://example.com/api/v1/domains/string/disconnect" \  -H "Content-Type: application/json" \  -d '{    "preorderDomainId": "string",    "expectedAmountCents": 0,    "consent": true  }'
{  "data": {},  "requestId": "string"}