Onerway
POST

Payer Add

Create a payer that can be reused in later Transfer payouts.

Request

merchantNo
Merchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
subEntityType
Payer entity type. 0 for business and 1 for individual. This choice determines which business or personal identity fields must be supplied.
Example:
country
Country of the payer.
Example:
companyNameEn
English company name for business payers.
companyName
Local company name for business payers.
addressEn1
Primary address line of the payer.
postcode
Postal code of the payer.
email
Payer email address.
areaCode
Phone area code.
phoneNumber
Phone number of the payer.
state
State or province of the payer.
city
City of the payer.
idType
Payer identity-document type. The required value depends on whether the payer is a business or an individual.
idNumber
Payer identity-document number.
idValidDateTo
Payer identity-document expiry date.
sign
Request signature string. Generate it according to the Transfer request-signing rules with your merchant private key.

Request example

curl -X POST 'https://sandbox-api.onerway.com/payout/api/v1/acct/addPayer' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "addressEn1": "Nanshan Science & Technology Park, Shenzhen",
  "areaCode": "+86",
  "city": "London",
  "companyName": "Demo Company Ltd",
  "companyNameEn": "Demo Company Ltd",
  "country": "GB",
  "email": "payer@example.com",
  "idNumber": "4563456546",
  "idType": "2",
  "idValidDateTo": "2046-08-04",
  "merchantNo": "801129",
  "phoneNumber": "15072871023",
  "postcode": "518057",
  "sign": "{{SIGN}}",
  "state": "London",
  "subEntityType": "0"
}'

Response

respCode
Response code returned by Onerway.
respMsg
Response message returned by Onerway.
data
Created payer ID.

Response example

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": "1984096429476806656"
}
No error responses are documented for this endpoint.