Onerway
POST

Payer Edit

Update an existing payer profile.

Request

id
Payer ID to update.
merchantNo
Merchant number assigned by Onerway. Retrieve it from the merchant portal or onboarding material after your sandbox or production account is created.
Example:
companyNameEn
English company name for business payers.
companyName
Local company name for business payers.
country
Payer country.
addressEn1
Primary address line of the payer.
addressEn2
Secondary address line.
addressEn3
Tertiary address line.
registerNo
Registration number.
registerDate
Registration date.
postcode
Postal code.
email
Email address.
areaCode
Phone area code.
phoneNumber
Phone number.
state
State or province.
city
City.
subEntityType
Payer entity type.
firstName
First name for individual payers.
lastName
Last name for individual payers.
idType
Identity-document type.
idNumber
Identity-document number.
birthDate
Birth date for individual payers.
idValidDateFrom
Identity-document valid-from date.
idValidDateTo
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/editPayer' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "addressEn1": "Nanshan Science & Technology Park, Shenzhen",
  "addressEn2": "2all",
  "addressEn3": "3",
  "areaCode": "+86",
  "city": "London",
  "companyName": "卡玛有限公司 &sunshine",
  "companyNameEn": "keyma LTD.",
  "country": "GB",
  "email": "324321@qq.com",
  "id": 1984096429476806700,
  "idType": "2",
  "idValidDateFrom": "2006-08-04",
  "idValidDateTo": "2046-08-04",
  "merchantNo": 801129,
  "phoneNumber": "15072871023",
  "postcode": "518057",
  "registerDate": "2005-08-04",
  "registerNo": "4563456546",
  "sign": "d2ea92efff636320122021f65b613201403f6d34334cfbc7e589ce9f842282q4",
  "state": "London",
  "subEntityType": "0"
}'

Response

respCode
Response code returned by Onerway.
respMsg
Response message returned by Onerway.
data
Update result placeholder.

Response example

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