Managed Integrations

A Managed Integration is an Integration which a third party can control.

Managed Integration Model

Attributes

  • id

    string

    The Managed Integration's unique identifier.

  • type

    string

    The type of Managed Integration. Supported types are paypal-referral.

  • enabled

    boolean

    Flag indicating whether the Managed Integration should become active or inactive.

  • status

    string

    Current status of the Managed Integration. Supported values are created, pending, provisioning, active, inactive and archived.

  • externalId

    string

    Field used to reference an id from an external system.

  • params

    object

    Params depending on the Managed Integration type.

  • createdAt

    timestamp

    When the Managed Integration was created.

  • createdBy

    crn

    The User or API Key that created the Managed Integration.

  • updatedAt

    timestamp

    When the Managed Integration was updated.

  • updatedBy

    crn

    The User or API Key that updated the Managed Integration.

  • claimedByAccountId

    string

    Centrapay account id used to claim the Managed Integration.

  • claimedBy

    crn

    The User or API Key that claimed the Managed Integration.

  • claimedAt

    timestamp

    When the Managed Integration was claimed.

  • invitation

    object

    A summary of the associated Invitation . See Invitation Summary .

  • inProgress

    boolean

    Flag indicating whether a status transition is in progress.

  • test

    boolean

    A flag which is present if the Managed Integration is for testing.


Invitation Summary Model

A summary of the Invitation for a Managed Integration.

Attributes

  • id

    string

    The Invitation's unique identifier.

  • code

    string

    The Invitation code.

  • expiresAt

    timestamp

    When the Invitation expires.


Merchant Model

Attributes

  • partnerMerchantId

    string required

    The unique id of the merchant in your system.

  • merchantName

    string required

    The name of the merchant.

  • merchantStreetNumberName

    string required

    The street number and name where the merchant is located.

  • merchantSuburb

    string required

    The suburb where the merchant is located.

  • merchantTown

    string required

    The town where the merchant is located.

  • merchantCountry

    string required

    The country where the merchant is located.

  • merchantPostCode

    string required

    The post code where the merchant is located.

  • merchantCategoryCode

    string

    The merchant category code.

  • settlementAcct

    string required

    The bank account number for settlement.

  • chargeAcct

    string

    The bank account number for charges.

  • merchantContactName

    string required

    The merchant contact name.

  • merchantEmail

    string required

    The merchant email address.

  • merchantContactNumber

    string

    The merchant contact number

  • terminals

    object

    Array of Terminal information.


Terminal Model

Attributes

  • provider

    object required

    The terminal provider Request. Refer to Integration Types .

  • terminalId

    string required

    The software or logical id of the payment terminal.

  • kitId

    string required

    The hardware id or serial number of the payment terminal.

  • reseller

    string

    The terminal reseller.

  • kitType

    string

    The model of the payment terminal.


Params Model

paypal-referral

Attributes

  • centrapayMerchantId

    string

    The ID of the Centrapay merchant that will be onboarded.

  • email

    string

    The email address to send the PayPal referral to.

quartz-business

Attributes

  • partnerBusinessId

    string required

    The unique id of the business in your system.

  • nzbn

    string

    The unique NZBN identifier.

  • companyName

    string required

    The name of the company.

  • tradingName

    string

    The trading name of the company.

  • entityType

    string

    The type of the entity.

  • businessStreetNumberName

    string

    The street number and name where the business is located.

  • businessSuburb

    string

    The suburb where the business is located.

  • businessTown

    string

    The town where the business is located.

  • businessCountry

    string

    The country where the business is located.

  • businessPostCode

    string

    The post code where the business is located.

  • primaryContactName

    string required

    The name of the primary contact of the business.

  • primaryContactEmail

    string required

    The email address of the primary contact of the business.

  • merchants

    object

    Array of Merchant information.


Create or Update Managed Integration

This endpoint allows you to create or update a Managed Integration.

Attributes

  • enabled

    boolean required

    Flag indicating whether the Managed Integration should become active or inactive.

  • params

    object required

    Params depending on the Managed Integration type.

  • test

    boolean

    Flag indicating the Managed Integration is for testing, this cannot be changed once the resource has been created.

Errors

  • INVALID_PARAMS

    400

    Invalid Params provided for Managed Integration type.

  • MERCHANT_LIVENESS_MISMATCH

    403

    The test flag on the merchant doesn't match the test flag on the paypal-referral managed integration.

  • MERCHANT_NOT_FOUND

    403

    The merchant is not found with the centrapayMerchantId on the paypal-referral managed integration.

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"
}

Get Managed Integration

This endpoint allows you to retrieve a Managed Integration by type and external id.

Request
curl -X GET \
https://service.centrapay.com/api/managed-integrations/paypal-referral/DKTs3U38hdhfEqwF1JKoT2 \
-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"
}

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

    Used to retrieve the next page of items.

Request
curl -X GET \
'https://service.centrapay.com/api/accounts/Jaim1Cu1Q55uooxSens6yk/managed-integrations?pageKey=Collection%23k9oBPAOgjz4k6a9MXNfRlFzn%7C%23Collection%7C4xb2jbtvgr07eax9259od5he' \
-H 'x-api-key: <TOKEN>'
Response
{
"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"
}
]
}