This endpoint allows you to update a Merchant Config.
paymentOptionsoptional array of objectsA list of Payment Option Configs. Test payment options should never be used for live merchant configurations.collectionIdsoptional array of stringsIds of the Token Collections, which must bediscountcollections. Required forcentrapay.ledgertypes.
paymentOptionsarray of objectsArray of Payment Option Configs. Test payment options should never be used for live merchant configurations.collectionIdsarray of stringsIds of the Token Collections, which must bediscountcollections. Required forcentrapay.ledgertypes.
errorstringThe name of the HTTP status. AlwaysBad Request.messageenumThe error code, or for a 400 a description of what's wrong with the request.Bad RequestThe request is malformed or missing required fields. The message says what's wrong, egamount is required. See 400 Malformed Request.PAYMENT_OPTION_TYPE_DOES_NOT_EXISTA payment optiontypeis not a known Asset Type.
statusCodeintegerThe HTTP status code. Always400.
errorstringThe name of the HTTP status. AlwaysUnauthorized.messageenumThe error code, or for a 400 a description of what's wrong with the request.Missing authenticationAPI key or JWT is missing, expired or invalid. See Auth.
statusCodeintegerThe HTTP status code. Always401.
errorstringThe name of the HTTP status. AlwaysForbidden.messageenumThe error code, or for a 400 a description of what's wrong with the request.COLLECTIONS_INVALIDAn item in thecollectionIdsarray does not exist or does not belong to a supported collection type.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.INVALID_WALLET_TYPEwalletIddoes not belong to a Settlement Wallet Asset.LIVENESS_MISMATCHOnly Merchants with thetestflag can have merchant configs with test assets, vice versa
statusCodeintegerThe HTTP status code. Always403.
errorstringThe name of the HTTP status. AlwaysNot Found.messageenumThe error code, or for a 400 a description of what's wrong with the request.Not FoundThe route doesn't exist. Check the URL and HTTP method against the examples. See 404 Route Not Found.
statusCodeintegerThe HTTP status code. Always404.
errorstringThe name of the HTTP status. AlwaysToo Many Requests.messageenumThe error code, or for a 400 a description of what's wrong with the request.RATE_LIMIT_EXCEEDEDCentrapay API rate limits have been exceeded. See Rate Limits.
statusCodeintegerThe HTTP status code. Always429.
errorstringThe name of the HTTP status. AlwaysInternal Server Error.messageenumThe error code, or for a 400 a description of what's wrong with the request.An internal server error occurredSomething went wrong on our end. Retrying should solve the issue. See 5xx Server Error.
statusCodeintegerThe HTTP status code. Always500.
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" } ]}'{ "createdAt": "2021-11-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "id": "mc_5ee168e8597be5002af7baed", "merchantId": "5ee0c486308f590260d9a07f", "paymentOptions": [ { "type": "bitcoin.main" }, { "type": "centrapay.nzd.main", "walletId": "1234c486308f3f0a23f0f92b" }, { "farmlandsMerchantNumber": "DbgY2SyD5M85zkePJjsQEf", "type": "farmlands.nzd.main" } ], "updatedAt": "2021-12-12T01:17:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey"}{ "error": "Bad Request", "message": "PAYMENT_OPTION_TYPE_DOES_NOT_EXIST", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "INVALID_WALLET_TYPE", "statusCode": 403}{ "error": "Not Found", "message": "Not Found", "statusCode": 404}{ "error": "Too Many Requests", "message": "RATE_LIMIT_EXCEEDED", "statusCode": 429}{ "error": "Internal Server Error", "message": "An internal server error occurred", "statusCode": 500}