Skip to content
Merchant Configs

Update Merchant Config

PUT/api/merchants/{merchantId}/configs/{configId}

This endpoint allows you to update a Merchant Config.

Path parameters

  • configIdrequired string
    The Merchant Config id.
  • merchantIdrequired string
    The Merchant id.

Request body

  • allowedRedirectUrlsoptional array of stringsexperimental
    Allowed prefixes for the redirectUrl property on Payment Requests created with this Config.
  • paymentOptionsoptional 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 PUT https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f/configs/mc_5ee168e8597be5002af7baed \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"paymentOptions": [
{
"type": "bitcoin.main"
},
{
"type": "centrapay.nzd.main",
"walletId": "1234c486308f3f0a23f0f92b"
},
{
"farmlandsMerchantNumber": "DbgY2SyD5M85zkePJjsQEf",
"type": "farmlands.nzd.main"
}
]
}'