Integration Requests
An Integration Request allows Centrapay users to request the creation of an Integration on a Centrapay Account.
Integration Request Model
Attributes
Terminal
Attributes
-
terminalId
string -
deviceId
string
Product
Attributes
-
name
string
Integration Types
Name | Description |
---|---|
epay | Asset provider ePay |
invenco | Terminal vendor invenco |
skyzer | Terminal vendor skyzer |
smartpay | Terminal vendor smartpay |
verifone | Terminal vendor Verifone |
vista | Terminal vendor vista |
windcave | Terminal vendor Windcave |
shopify | E-commerce provider Shopify |
Create an Integration Request experimental
This endpoint allows you to create an Integration Request.
Attributes
-
merchantId
string required -
type
object required -
terminal
object -
product
object -
externalId
string
curl -X POST \ https://service.centrapay.com/api/integration-requests \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "merchantId": "5ee0c486308f590260d9a07f", "type": "verifone", "terminal": { "terminalId": "002039390093939", "deviceId": "002-039-390" }}'
{ "id": "DKTs3U38hdhfEqwF1JKoT2", "accountId": "Jaim1Cu1Q55uooxSens6yk", "merchantId": "5ee0c486308f590260d9a07f", "type": "verifone", "status": "pending", "createdAt": "2020-06-12 01:17:46 UTC", "updatedAt": "2020-06-12 01:17:46 UTC", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "terminal": { "terminalId": "002039390093939", "deviceId": "002-039-390" }}
Get an Integration Request experimental
This endpoint allows you to get an Integration Request.
curl -X GET \ https://service.centrapay.com/api/integration-requests/DKTs3U38hdhfEqwF1JKoT2 \ -H 'x-api-key: <TOKEN>'
{ "id": "DKTs3U38hdhfEqwF1JKoT2", "accountId": "Jaim1Cu1Q55uooxSens6yk", "merchantId": "5ee0c486308f590260d9a07f", "type": "epay", "status": "pending", "terminalId": "11000021", "createdAt": "2020-06-12T01:17:46.499Z", "updatedAt": "2020-06-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "product": { "name": "koha-card" }, "notifiedAt": "2020-06-13T05:00:00.000Z"}
Search Integration Requests
Returns a paginated response of Integration Requests.
Query Parameters
Attributes
-
accountId
string -
type
string -
pending
boolean
curl -X GET \ 'https://service.centrapay.com/api/integration-requests?type=epay&pending=true&accountId=Jaim1Cu1Q55uooxSens6yk' \ -H 'x-api-key: <TOKEN>'
{ "items": [ { "id": "DKTs3U38hdhfEqwF1JKoT2", "accountId": "Jaim1Cu1Q55uooxSens6yk", "merchantId": "5ee0c486308f590260d9a07f", "type": "epay", "status": "pending", "terminalId": "11000021", "createdAt": "2020-06-12T01:17:46.499Z", "updatedAt": "2020-06-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "product": { "name": "koha-card" } } ]}
Configure Integration Request experimental
This endpoint allows you to supply configuration values for the Integration Request.
Attributes
-
terminalId
string
curl -X PUT \ https://service.centrapay.com/api/integration-requests/DKTs3U38hdhfEqwF1JKoT2/configs \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "terminalId": "11000021"}'
{ "id": "DKTs3U38hdhfEqwF1JKoT2", "accountId": "Jaim1Cu1Q55uooxSens6yk", "merchantId": "5ee0c486308f590260d9a07f", "type": "epay", "status": "pending", "terminalId": "11000021", "createdAt": "2020-06-12T01:17:46.499Z", "updatedAt": "2020-06-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "product": { "name": "koha-card" }}
Get Integration Request Configuration experimental
This endpoint allows you to get the configuration values for the Integration Request.
curl -X GET \ https://service.centrapay.com/api/integration-requests/DKTs3U38hdhfEqwF1JKoT2/configs \ -H 'x-api-key: <TOKEN>'
{ "terminalId": "11000021"}
Activate Integration Request experimental
This endpoint allows you to activate an Integration Request.
Errors
-
INTEGRATION_PARAM_MISSING
403 -
INTEGRATION_ALREADY_ACTIVATED
403
curl -X POST \ https://service.centrapay.com/api/integration-requests/DKTs3U38hdhfEqwF1JKoT2/activate \ -H 'x-api-key: <TOKEN>'
{ "id": "DKTs3U38hdhfEqwF1JKoT2", "accountId": "Jaim1Cu1Q55uooxSens6yk", "merchantId": "5ee0c486308f590260d9a07f", "type": "epay", "status": "active", "terminalId": "11000021", "createdAt": "2020-06-12T01:17:46.499Z", "updatedAt": "2020-06-12T01:17:46.499Z", "createdBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "product": { "name": "koha-card" }}
Delete Integration Request experimental
This endpoint allows you to delete an Integration Request.
curl -X DELETE \ https://service.centrapay.com/api/integration-requests/DKTs3U38hdhfEqwF1JKoT2 \ -H 'x-api-key: <TOKEN>'
{}