Skip to content
Merchants

Update Merchant

PUT/api/merchants/{merchantId}

This endpoint allows you to update a Merchant.

Path parameters

  • merchantIdrequired string
    The Merchant id.

Request body

  • categoryCodeoptional string
    The category code assigned to the Merchant by Centrapay. Must be 4 digits.
  • locationoptional location
    Physical Location of Merchant. It is highly recommended that you provide this otherwise, users won't be able to find you with our Merchant Search API if they perform a origin + distance query.
  • nameoptional string
    Merchant name.
  • settlementConfigoptional object
    Merchant Settlement Config.
    • bankAccountIdoptional string
      The id of the bank account funds should be settled into. This must belong to the account

Responses

Request
curl -X PUT https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"location": {
"city": "Auckland",
"country": "NZ",
"postCode": "1010",
"street": "125 Queen Street"
},
"name": "Centrapay Café",
"settlementConfig": {
"bankAccountId": "WRhAxxWpTKb5U7pXyxQjjY"
}
}'