Skip to content
Merchant Configs

Create Merchant Config

POST/api/merchants/{merchantId}/configs

This endpoint allows you to create a Merchant Config for a Merchant.

Path parameters

  • merchantIdrequired string
    The Merchant id.

Request body

  • allowedRedirectUrlsoptional array of stringsexperimental
    Allowed prefixes for the redirectUrl property on Payment Requests created with this Config.
  • paymentOptionsrequired array of objects
    A list of Payment Option Configs. Test payment options should never be used for live merchant configurations.
    • collectionIdsoptional array of strings
      Ids of the Token Collections, which must be discount collections. Required for centrapay.ledger types.
    • externalMerchantIdoptional string
      Id of the external merchant. Required for epay, stadius, quartz, payap-debit and uplinkapi.test types.
    • farmlandsMerchantNumberoptional string
      Id of the Farmlands merchant that funds will be transferred to.
    • paypalMerchantAccountIdoptional string
      Id of the PayPal merchants account. Required for paypal and venmo types.
    • paypalStoreIdoptional string
      Id of the PayPal merchants store. Required for paypal and venmo types.
    • typerequired string
      Type of payment method. See Asset Types for supported values.
    • walletIdoptional string
      Merchant's Centrapay Settlement Wallet Asset to receive payments. Optional for centrapay.nzd types, if not supplied then a settlement wallet asset may be created and then assigned.

Responses

Request
curl -X POST https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f/configs \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"paymentOptions": [
{
"type": "centrapay.nzd.main",
"walletId": "1234c486308f3f0a23f0f92b"
},
{
"externalMerchantId": "11000021",
"type": "epay.main"
},
{
"farmlandsMerchantNumber": "DbgY2SyD5M85zkePJjsQEf",
"type": "farmlands.nzd.main"
},
{
"externalMerchantId": "0012399012",
"type": "quartz.nzd.main"
}
]
}'