Onerway
POST

Create card

Use this endpoint to create a card for a cardholder with a designated card product and initial deposit amount.

Request

ApiKey
Issuing API key request header assigned by Onerway.
Example:
clientRequestId
Idempotent request ID for card creation.
Example:
cardholderId
Cardholder ID to associate with the card.
Example:
productId
Card product ID confirmed with Onerway.
Example:
amount
Initial deposit amount for the card.
Example:
Constraints
Rule
Must be greater than 0 and support up to 2 decimal places.

Request example

curl -X POST 'https://sandbox-api.onerway.com/api/v1/merchant/card/createCard' \
  -H 'ApiKey: replace_with_issuing_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "amount": 100,
  "cardholderId": 300001,
  "clientRequestId": "REQ_20260101_001",
  "productId": 1
}'

Response

respCode
Business response code. 20000 means success.
respMsg
Response message.
Created card information.

Response example

{
  "respCode": "20000",
  "respMsg": "success",
  "data": {
    "cardId": 100001
  }
}
No error responses are documented for this endpoint.