The Onerway Issuing API enables merchants to create and manage cards, manage cardholders, query transactions, and receive real-time webhook notifications for card operations and transaction events.
/api/v1/merchant | Method: POST| Header | Type | Required | Description |
|---|---|---|---|
| Content-Type | String | Yes | application/json;charset=UTF-8 |
| ApiKey | String | Yes | Merchant identity key |
| Field | Type | Description |
|---|---|---|
respCode | String | Response code, 20000 indicates success |
respMsg | String | Response message |
data | Object/Array | Business data, null on failure |
ISO 4217 international standard.
All Long type timestamps are in UTC (timezone 0), in seconds.
When the HTTP status code is not 200:
| HTTP Status Code | Description |
|---|---|
401 Unauthorized | Invalid API KEY |
403 Forbidden | IP whitelist restriction or insufficient API permissions |
When the HTTP status code is 200, the business response codes and descriptions are as follows:
| Code | Description |
|---|---|
20000 | Success |
40000 | Param error |
80000 | Internal service error. Please contact ONERWAY |
80001 | Cardholder not found |
80002 | Cardholder email already exists |
80003 | Incorrect cardholder merchant number |
80004 | Merchant status is invalid |
80005 | Merchant no issuing business |
80006 | Merchant account not found |
80007 | Merchant balance not enough |
80008 | The recharge amount exceeds the maximum limit |
80009 | The recharge amount is less than the minimum limit |
80010 | Duplicate data |
80011 | Cardholder card count limit |
81000 | Unauthorized Merchant |
81001 | Business does not exist |
40004 | System exception NoHandlerFoundException |
40005 | System exception HttpRequestMethodNotSupportedException |
40013 | System exception HttpMessageNotReadableException |
40015 | System exception HttpMediaTypeNotSupportedException |