Centrapay APIs respond with 200, 400, 401, 403, 404, or 429 HTTP status codes.
+ Centrapay APIs respond with 200, 400, 401, 403, 404, or 429 HTTP status codes.
In rare cases endpoints may respond with 5xx status codes. Some legacy or deprecated endpoints may have exceptions to the guidelines
documented here. Any such exceptions will be documented on the endpoints. API key or JWT is missing, expired or invalid. Go look at our Auth API documentation. A Merchant Config defines the available payment options for paying a Payment Request API . A Merchant Config defines the available payment options for paying a Payment Request API . Centrapay uses identifiers (IDs) to uniquely distinguish objects within our system. Object IDs are alphanumeric strings with an optional prefix.
+Prefixes enhance readability and allow Centrapay to immediately return errors API to integrators when an invalid ID is used. Objects with prefixes will conform to the format HTTP Status Codes
Merchant Configs
Merchant Configs
Attributes
{
- "id": "5ee168e8597be5002af7b454",
+ "id": "mc_5ee168e8597be5002af7b454",
"merchantId": "5ee0c486308f590260d9a07f",
"createdAt": "2021-11-12T01:17:46.499Z",
"updatedAt": "2021-11-12T01:17:46.499Z",
@@ -103,7 +103,7 @@
-H 'x-api-key: <TOKEN>'
{
- "id": "5ee168e8597be5002af7b454",
+ "id": "mc_5ee168e8597be5002af7b454",
"merchantId": "5ee0c486308f590260d9a07f",
"createdAt": "2021-11-12T01:17:46.499Z",
"updatedAt": "2021-11-12T01:17:46.499Z",
@@ -125,7 +125,7 @@
Copy
[
{
- "id": "5ee168e8597be5002af7b454",
+ "id": "mc_5ee168e8597be5002af7b454",
"merchantId": "5ee0c486308f590260d9a07f",
"createdAt": "2021-09-12T01:17:46.499Z",
"updatedAt": "2021-09-12T01:17:46.499Z",
@@ -139,7 +139,7 @@
]
},
{
- "id": "5ee168e8597be5002af7baed",
+ "id": "mc_5ee168e8597be5002af7baed",
"merchantId": "5ee0c486308f590260d9a07f",
"createdAt": "2021-11-12T01:17:46.499Z",
"updatedAt": "2021-11-12T01:17:46.499Z",
@@ -159,8 +159,8 @@
Collapse all
paymentOptions
allowedRedirectUrls
Errors
INVALID_WALLET_TYPE
LIVENESS_MISMATCH
curl -X PUT \
- https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f/configs/5ee168e8597be5002af7baed \
+
INVALID_WALLET_TYPE
LIVENESS_MISMATCH
curl -X PUT \
+ https://service.centrapay.com/api/merchants/5ee0c486308f590260d9a07f/configs/mc_5ee168e8597be5002af7baed \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '
@@ -182,7 +182,7 @@
'
{
- "id": "5ee168e8597be5002af7baed",
+ "id": "mc_5ee168e8597be5002af7baed",
"merchantId": "5ee0c486308f590260d9a07f",
"createdAt": "2021-09-12T01:17:46.499Z",
"updatedAt": "2021-12-12T01:17:46.499Z",
diff --git a/api/merchants/index.html b/api/merchants/index.html
index 7e24b2ce0..490a0aadd 100644
--- a/api/merchants/index.html
+++ b/api/merchants/index.html
@@ -19,7 +19,7 @@
Object IDs
{prefix}_{random-characters}
e.g. mc_3LKQhvGUcADgqoEM3bh6pslE
.Prefix Description mc_
Identifier for a Merchant Config API object. c_
Identifier for a Collection API object.
HTTP Status Codes
Response
Response
Response
Request
Request
Response