Managed Integrations
A Managed Integration is an Integration which a third party can control.
Managed Integration Model
Attributes
Invitation Summary Model
A summary of the Invitation for a Managed Integration.
Attributes
-
id
string -
code
string -
expiresAt
timestamp
Merchant Model
Attributes
-
partnerMerchantId
string required -
merchantName
string required -
merchantStreetNumberName
string required -
merchantSuburb
string required -
merchantTown
string required -
merchantCountry
string required -
merchantPostCode
string required -
merchantCategoryCode
string -
settlementAcct
string required -
chargeAcct
string -
merchantContactName
string required -
merchantEmail
string required -
merchantContactNumber
string -
terminals
object
Terminal Model
Attributes
-
provider
object required -
terminalId
string required -
kitId
string required -
reseller
string -
kitType
string
Params Model
paypal-referral
Attributes
-
centrapayMerchantId
string -
email
string
quartz-business
Attributes
-
partnerBusinessId
string required -
nzbn
string -
companyName
string required -
tradingName
string -
entityType
string -
businessStreetNumberName
string -
businessSuburb
string -
businessTown
string -
businessCountry
string -
businessPostCode
string -
primaryContactName
string required -
primaryContactEmail
string required -
merchants
object
Create or Update Managed Integration
This endpoint allows you to create or update a Managed Integration.
Attributes
-
enabled
boolean required -
params
object required -
test
boolean
Errors
-
INVALID_PARAMS
400 -
MERCHANT_LIVENESS_MISMATCH
403 -
MERCHANT_NOT_FOUND
403
curl -X PUT \ https://service.centrapay.com/api/managed-integrations/paypal-referral/DKTs3U38hdhfEqwF1JKoT2 \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "enabled": true, "params": { "centrapayMerchantId": "5ffcaf432003060007b98343", "email": "test@centrapay.com" }}'
{ "id": "5ee0c486308f590260d9a07f", "type": "paypal-referral", "externalId": "DKTs3U38hdhfEqwF1JKoT2", "enabled": true, "params": { "centrapayMerchantId": "5ffcaf432003060007b98343", "email": "test@centrapay.com" }, "status": "provisioning", "claimedByAccountId": "Jaim1Cu1Q55uooxSens6yk", "claimedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "claimedAt": "2020-06-12T01:17:46.499Z", "inProgress": true, "createdAt": "2020-06-11T01:17:46.499Z", "createdBy": "crn:BIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedAt": "2020-06-12T01:17:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey"}
Get Managed Integration
This endpoint allows you to retrieve a Managed Integration by type and external id.
curl -X GET \ https://service.centrapay.com/api/managed-integrations/paypal-referral/DKTs3U38hdhfEqwF1JKoT2 \ -H 'x-api-key: <TOKEN>'
{ "id": "5ee0c486308f590260d9a07f", "type": "paypal-referral", "externalId": "DKTs3U38hdhfEqwF1JKoT2", "enabled": true, "params": { "centrapayMerchantId": "5ffcaf432003060007b98343", "email": "test@centrapay.com" }, "status": "provisioning", "claimedByAccountId": "Jaim1Cu1Q55uooxSens6yk", "claimedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "claimedAt": "2020-06-12T01:17:46.499Z", "inProgress": true, "createdAt": "2020-06-11T01:17:46.499Z", "createdBy": "crn:BIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedAt": "2020-06-12T01:17:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey"}
List Managed Integration
This endpoint allows you to retrieve the list of managed integrations for an account. Returns a paginated list of Managed Integrations for an Account.
Attributes
-
pageKey
string
curl -X GET \ 'https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/managed-integrations?pageKey=Collection%23k9oBPAOgjz4k6a9MXNfRlFzn%7C%23Collection%7C4xb2jbtvgr07eax9259od5he' \ -H 'x-api-key: <TOKEN>'
{ "nextPageKey": "Collection#ujk6nDuqFueXNGndXj8Qp9hU|#Collection", "items": [ { "id": "5ee0c486308f590260d9a07f", "type": "paypal-referral", "externalId": "DKTs3U38hdhfEqwF1JKoT2", "enabled": true, "params": { "centrapayMerchantId": "5ffcaf432003060007b98343", "email": "test@centrapay.com" }, "status": "provisioning", "claimedByAccountId": "Jaim1Cu1Q55uooxSens6yk", "claimedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "claimedAt": "2020-06-12T01:17:46.499Z", "inProgress": true, "createdAt": "2020-06-11T01:17:46.499Z", "createdBy": "crn:BIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedAt": "2020-06-12T01:17:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey" }, { "id": "4maj50b6fdhmv0v38yrgjzdh", "type": "paypal-referral", "externalId": "alL3YQEGeY5WLu5uSFbM0tb3", "enabled": true, "params": { "centrapayMerchantId": "7aqasjid5kbcp7wquopoe4dg", "email": "test2@centrapay.com" }, "status": "provisioning", "claimedByAccountId": "Jaim1Cu1Q55uooxSens6yk", "claimedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "claimedAt": "2020-07-12T01:18:46.499Z", "inProgress": true, "createdAt": "2020-07-11T01:18:46.499Z", "createdBy": "crn:BIj211vFs9cNACwBb04vQw:api-key:MyApiKey", "updatedAt": "2020-07-12T01:18:46.499Z", "updatedBy": "crn:WIj211vFs9cNACwBb04vQw:api-key:MyApiKey" } ]}