A Managed Integration is an Integration API which a third party can control.
Attributes
A summary of the Invitation API for a Managed Integration.
Attributes
id
code
expiresAt
timestamp
paypal-referral
Attributes
centrapayMerchantId
email
/api/managed-integrations/{type}/{externalId}
This endpoint allows you to create or update a Managed Integration.
Attributes
enabled
params
test
Errors
INVALID_PARAMS
MERCHANT_LIVENESS_MISMATCH
MERCHANT_NOT_FOUND
Request
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"
}
}
'
Response
{
"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"
}
/api/managed-integrations/{id}
This endpoint allows you to retrieve a Managed Integration by id.
Request
curl -X GET \
https://service.centrapay.com/api/managed-integrations/dh375hdh08f590260d9a07f \
-H 'x-api-key: <TOKEN>'
Response
{
"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"
}