Skip to content
Merchants

Create Merchant

POST/api/merchants

This endpoint allows you to create a Merchant.

Request body

  • accountIdrequired string
    Id of Merchant's owning Centrapay account.
  • categoryCodeoptional string
    The category code assigned to the Merchant by Centrapay. Must be 4 digits.
  • countryrequired string
    Merchant ISO 3166 country code. Must match the "region" on the Account.
  • 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. This field is forbidden when the provided type is e-commerce.
  • namerequired 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
  • testoptional booleandeprecated
    Ignored. A Merchant is a test merchant if its owning Account is a test account.
  • typeoptional enum
    The type of the Merchant.
    • e-commerce
      An online only merchant. E-commerce merchants are not displayed in the store finder.
    • physical
      A merchant with a physical store.

Responses

Request
curl -X POST https://service.centrapay.com/api/merchants \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "C4QnjXvj8At6SMsEN4LRi9",
"country": "NZ",
"name": "Centrapay Cafe Auckland"
}'