This endpoint allows you to create a Merchant.
locationoptional locationPhysical 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 ise-commerce.testoptional booleandeprecatedIgnored. A Merchant is a test merchant if its owning Account is a test account.
locationlocationPhysical 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 ise-commerce.activeIdentifies merchants that have been activated for Centrapay services successfully (i.e. they have successfully created a Payment Request).appliedIdentifies merchants that have registered to be activated for the Centrapay service.archivedIdentifies merchants that have been archived. Archived merchants are not returned when listing Merchants.Allowed Reasons: duplicate, data-quality-issues, change-of-ownership, centrapay-discontinued-opt-out, blocked, company-closed, tid-cancelled
deactivatedIdentifies merchants that have been de-registered for the Centrapay service.Allowed Reasons: duplicate, data-quality-issues, change-of-ownership, centrapay-discontinued-opt-out, blocked, company-closed, tid-cancelled
on-holdIdentifies merchants that have been placed on hold.Allowed Reasons: seasonal-business-closure, incompatible-terminal, no-response
provisioningIdentifies merchants that are in the process of being activated for the Centrapay service.
blockedThe merchant has been blocked.centrapay-discontinued-opt-outThe merchant or partner has requested cancellation of Centrapay.change-of-ownershipThe merchant has changed ownership.company-closedThe merchant's business has closed.data-quality-issuesData quality issues are preventing the merchant from onboarding.duplicateThe merchant already exists in the Centrapay system.incompatible-terminalThe merchant does not have any compatible terminals.no-responseNo response has been received from the merchant.seasonal-business-closureThe merchant has closed temporarily.tid-cancelledThe merchant's terminal has been cancelled.
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.
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.ACCOUNT_REGION_MISMATCHThe merchant's "country" does not match the "region" on the Account.BANK_ACCOUNT_MISMATCHThe bank account in the settlement config does not belong to the same account.ForbiddenThe resource doesn't exist, or your user or API key doesn't have permission to access it. See 403 Forbidden.INVALID_ACCOUNTThe Account is not an organisation account.
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 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"}'{ "accountId": "C4QnjXvj8At6SMsEN4LRi9", "country": "NZ", "createdAt": "2021-11-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "id": "5ee0c486308f590260d9a07f", "name": "Centrapay Cafe Auckland", "onboardingStatus": "applied", "test": false, "updatedAt": "2021-11-12T01:17:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey"}{ "error": "Bad Request", "message": "amount is required", "statusCode": 400}{ "error": "Unauthorized", "message": "Missing authentication", "statusCode": 401}{ "error": "Forbidden", "message": "BANK_ACCOUNT_MISMATCH", "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}