Skip to main content

Business API

All paths below are relative to BUSINESS_API_BASE. The current US deployment prefix is /api/business/v1.

Use the API key for this target. This page describes the target contract; confirm activation for your application.

Download OpenAPI · Object reference

List applications​

GET /apps

List applications visible to this credential. Inspect enabled_payment_entries before choosing a payment entry.

Required scope: apps:read.

ParameterLocationRequiredType and constraints
cursorqueryNostring Max length: 1024.
limitqueryNointeger Minimum: 1. Maximum: 100. Default: 25.

Response: 200​

FieldTypeRequiredDescription
dataarray of AppYesThe response resource or resource list. Max items: 100.
metaMetaYesResponse correlation and freshness metadata.
next_cursorstring or nullYesPass this value unchanged to fetch the next page. Null ends the list.

Failures use the shared error object. See recovery guidance.

Retrieve an application​

GET /apps/{app_id}

Read the application state, enabled entries, and platform bindings visible to the credential.

Required scope: apps:read.

ParameterLocationRequiredType and constraints
app_idpathYesstring Min length: 1. Max length: 40.

Response: 200​

FieldTypeRequiredDescription
dataAppYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Failures use the shared error object. See recovery guidance.

List orders​

GET /orders

Read a cursor-paginated reporting view of orders, with optional filters. Check response freshness.

Required scope: orders:read.

ParameterLocationRequiredType and constraints
cursorqueryNostring Max length: 1024.
limitqueryNointeger Minimum: 1. Maximum: 100. Default: 25.
app_idqueryNostring Min length: 1. Max length: 40.
statusqueryNopending, processing, unknown, paid, failed, closed
created_fromqueryNostring (date-time)
created_beforequeryNostring (date-time)

Response: 200​

FieldTypeRequiredDescription
dataarray of OrderYesThe response resource or resource list. Max items: 100.
metaMetaYesResponse correlation and freshness metadata.
next_cursorstring or nullYesPass this value unchanged to fetch the next page. Null ends the list.

Failures use the shared error object. See recovery guidance.

Retrieve an order​

GET /orders/{order_id}

Read the order, its payment amounts, state, and version. Use the Payment API for authoritative payment reconciliation; the Business API returns a reporting view.

Required scope: orders:read.

ParameterLocationRequiredType and constraints
order_idpathYesstring Min length: 1. Max length: 40.

Response: 200​

FieldTypeRequiredDescription
dataOrderYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Failures use the shared error object. See recovery guidance.

List refunds​

GET /refunds

List refund reporting records by review or execution state. Date filtering is part of the target contract; rollout support must be confirmed.

Required scope: refunds:read.

ParameterLocationRequiredType and constraints
cursorqueryNostring Max length: 1024.
limitqueryNointeger Minimum: 1. Maximum: 100. Default: 25.
app_idqueryNostring Min length: 1. Max length: 40.
review_statusqueryNoreceived, needs_materials, under_review, awaiting_funds, approved, rejected, cancelled
execution_statusqueryNonot_submitted, accepted, submitting, processing, unknown, succeeded, failed, cancelled
created_fromqueryNostring (date-time)
created_beforequeryNostring (date-time)

Response: 200​

FieldTypeRequiredDescription
dataarray of RefundYesThe response resource or resource list. Max items: 100.
metaMetaYesResponse correlation and freshness metadata.
next_cursorstring or nullYesPass this value unchanged to fetch the next page. Null ends the list.

Failures use the shared error object. See recovery guidance.

Retrieve a refund​

GET /refunds/{refund_id}

Read the stable refund request ID, review status, execution status, and estimated or actual economics.

Required scope: refunds:read.

ParameterLocationRequiredType and constraints
refund_idpathYesstring Min length: 1. Max length: 40.

Response: 200​

FieldTypeRequiredDescription
dataRefundYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Failures use the shared error object. See recovery guidance.

Check refund eligibility​

GET /orders/{order_id}/refund-eligibility

Perform an authoritative point-in-time eligibility check. Submission rechecks capacity, version, and policy.

Required scope: refunds:read.

ParameterLocationRequiredType and constraints
order_idpathYesstring Min length: 1. Max length: 40.

Response: 200​

FieldTypeRequiredDescription
dataRefundEligibilityYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Failures use the shared error object. See recovery guidance.

Request a refund​

POST /orders/{order_id}/refunds

Submit principal for a full or partial refund using the current order version. Acceptance starts the refund workflow; it does not confirm provider completion.

Required scope: refunds:write.

ParameterLocationRequiredType and constraints
order_idpathYesstring Min length: 1. Max length: 40.
Idempotency-KeyheaderYesstring Min length: 1. Max length: 191.

Request body​

FieldTypeRequiredDescription
amount_minorintegerYesAn integer in the smallest currency unit: fen for CNY or cents for USD. Minimum: 1. Maximum: 9007199254740991.
reasoncustomer_request, duplicate, fraud, service_issue, consumer_complaint, otherYesThe refund reason.
expected_order_versionintegerYesThe current order version used to check concurrency. Minimum: 1. Maximum: 9007199254740991.

Response: 202​

FieldTypeRequiredDescription
dataRefundYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Response headers: Location, Retry-After. Follow a returned status location on the assigned service.

Failures use the shared error object. See recovery guidance.

List balances​

GET /balances

Read balances by application and currency. Each balance and response metadata records its reporting time.

Required scope: finance:read.

ParameterLocationRequiredType and constraints
app_idqueryNostring Min length: 1. Max length: 40.
cursorqueryNostring Max length: 1024.
limitqueryNointeger Minimum: 1. Maximum: 100. Default: 25.

Response: 200​

FieldTypeRequiredDescription
dataarray of BalanceYesThe response resource or resource list. Max items: 100.
metaMetaYesResponse correlation and freshness metadata.
next_cursorstring or nullYesPass this value unchanged to fetch the next page. Null ends the list.

Failures use the shared error object. See recovery guidance.

List release stages​

GET /release-stages

Read the amounts, due dates, and reasons that can block a scheduled release.

Required scope: finance:read.

ParameterLocationRequiredType and constraints
app_idqueryNostring Min length: 1. Max length: 40.
cursorqueryNostring Max length: 1024.
limitqueryNointeger Minimum: 1. Maximum: 100. Default: 25.

Response: 200​

FieldTypeRequiredDescription
dataarray of ReleaseStageYesThe response resource or resource list. Max items: 100.
metaMetaYesResponse correlation and freshness metadata.
next_cursorstring or nullYesPass this value unchanged to fetch the next page. Null ends the list.

Failures use the shared error object. See recovery guidance.

Retrieve an operation​

GET /operations/{operation_id}

Follow an asynchronous command. Inspect its resource reference to retrieve the resulting business object.

Required scope: operations:read.

ParameterLocationRequiredType and constraints
operation_idpathYesstring Min length: 1. Max length: 40.

Response: 200​

FieldTypeRequiredDescription
dataOperationYesThe response resource or resource list.
metaMetaYesResponse correlation and freshness metadata.

Failures use the shared error object. See recovery guidance.