Onerway
API Reference

API specifications

Review common Issuing API request headers, response envelope, currency and timestamp rules, and response codes.

Use this page before integrating Issuing APIs. All Issuing merchant APIs use POST requests under the /api/v1/merchant base path unless an endpoint page states otherwise.

Request headers

HeaderTypeRequiredDescription
Content-TypeStringYesUse application/json;charset=UTF-8.
ApiKeyStringYesMerchant identity credential assigned by Onerway for Issuing API access.

Response structure

FieldTypeDescription
respCodeStringResponse code. 20000 means the request was processed successfully.
respMsgStringResponse message.
dataObject / ArrayBusiness data. The value can be null when the request fails.

Currency

Currency values use the ISO 4217 international standard.

Timezone

Long timestamp fields are UTC timestamps. Query parameters use seconds unless the endpoint page states otherwise; operation, settlement, authorization, and transaction event timestamps can be returned in milliseconds.

Response codes

When the HTTP status code is not 200:

HTTP status codeDescription
401 UnauthorizedInvalid API credentials.
403 ForbiddenIP allowlist restriction or insufficient API permissions.

When the HTTP status code is 200, read the business response code:

CodeDescription
20000Success.
40000Parameter error.
80000Internal service error. Contact Onerway.
80001Cardholder not found.
80002Cardholder email already exists.
80003Incorrect cardholder merchant number.
80004Merchant status is invalid.
80005Merchant has no issuing business.
80006Merchant account not found.
80007Merchant balance is not enough.
80008The recharge amount exceeds the maximum limit.
80009The recharge amount is less than the minimum limit.
80010Duplicate data.
80011Cardholder card count limit.
81000Unauthorized merchant.
81001Business does not exist.
40004System exception: NoHandlerFoundException.
40005System exception: HttpRequestMethodNotSupportedException.
40013System exception: HttpMessageNotReadableException.
40015System exception: HttpMediaTypeNotSupportedException.