POST
/
payment-setting
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/payment-setting \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Primary Bank Account",
"type": "BankWireTransfer",
"settings": {
"bankName": "Bank of Example",
"accountNumber": "123456789",
"bankCode": "987654",
"country": "USA",
"countryCode": "US",
"currency": "USD"
},
"isDefault": true,
"memo": "Main operational account"
}'
{
  "status": "success",
  "message": "Payment setting created successfully",
  "paymentSetting": {
    "id": "24d2c371-4a7a-4acd-b4aa-d3eb3bebd8fa",
    "name": "Primary Bank Account",
    "type": "BankWireTransfer",
    "settings": {
      "bankName": "Bank of Example",
      "accountNumber": "123456789",
      "bankCode": "987654",
      "country": "USA",
      "countryCode": "US",
      "currency": "USD"
    },
    "isDefault": true,
    "memo": "Main operational account",
    "createdAt": "2023-11-22T20:48:36.034Z",
    "updatedAt": "2023-11-22T20:48:36.034Z"
  }
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json

Response

201
application/json

Payment setting created successfully

The response is of type object.