API reference · Credit

Buy now pay later returns and disputes

POST Cancel a plan inside its cooling-off window

POST /bnpl/plan/{reference}/cancel

Free of charge and without the merchant's agreement, which is what makes it a right rather than a concession. The balance goes, every charge on the plan goes with it, and any down payment comes back.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: GenericResponsePlanResponse

curl -X POST "https://api.bridgemoni.com/bnpl/plan/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/cancel" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Plan cancelled

GET List the disputes raised on a plan

GET /bnpl/plan/{reference}/dispute

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live

Path parameters

Name
reference

Example

Response: GenericResponseListDisputeResponse

curl -X GET "https://api.bridgemoni.com/bnpl/plan/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/dispute" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV"

Responses

StatusWhen
200Disputes retrieved successfully

POST Raise a dispute on a plan

POST /bnpl/plan/{reference}/dispute

While a dispute stands the plan stops ageing: it takes no payment, accrues no late charge, is not contacted about arrears and is not furnished to a bureau. A customer should not acquire a credit record for refusing to pay for goods they never received.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: RaiseDisputeRequest · Response: GenericResponseDisputeResponse

curl -X POST "https://api.bridgemoni.com/bnpl/plan/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/dispute" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "reason": "string"
}'

Responses

StatusWhen
200Dispute raised

POST Record a return against a plan

POST /bnpl/plan/{reference}/return

The funder is made whole before the customer sees a cent: the refund clears what is still owed on the plan, the schedule shrinks from the back so the next payment date does not move, and only what is left over is paid out. It goes to the wallet the plan is held against and nowhere else - there is no destination on the request, because a refund whose destination is an input is a payout instruction wearing a refund's name. Requires the REFUNDER role on the merchant.

Headers

NameNotes
AuthorizationBearer token
X-TenantYour tenant
X-Environmenttest or live
Content-Typeapplication/json

Path parameters

Name
reference

Example

Request body: RecordReturnRequest · Response: GenericResponseReturnResponse

curl -X POST "https://api.bridgemoni.com/bnpl/plan/b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e/return" \
  -H "Authorization: Bearer $BRIDGEMONI_TOKEN" \
  -H "X-Tenant: $BRIDGEMONI_TENANT" \
  -H "X-Environment: $BRIDGEMONI_ENV" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 0,
  "reason": "string",
  "merchantReturnReference": "b3f1c2d4-5e6a-4b7c-8d9e-0f1a2b3c4d5e",
  "idempotencyKey": "string"
}'

Responses

StatusWhen
200Return recorded

Generated from the OpenAPI document. Branch on the HTTP status: there is no machine-readable error code on the wire. Errors