Connections
A Connection is a link between a Wallet and a Sales Channel.
Connection Model
Attributes
Create Connection experimental
This endpoint allows you to create a Connection .
Attributes
-
merchantId
string required
curl -X POST \ https://service.centrapay.com/api/connections \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "merchantId": "abcde"}'
{ "id": "1234", "createdBy": "crn:1234abc:api-key:MyAPIKey", "createdByAccountName": "Salespoint", "createdAt": "2021-08-25T00:02:49.488Z", "status": "created", "url": "https://app.centrapay.com/connect/1234", "merchantId": "abcde"}
Authorize Connection experimental
This endpoint allows you to authorize a Connection .
Attributes
-
walletId
string required
curl -X POST \ https://service.centrapay.com/api/connections/1234/authorize \ -H 'content-type: application/json' \ -H 'x-api-key: <TOKEN>' \ -d '{ "walletId": "vendswift-nz"}'
{ "id": "1234", "createdBy": "crn:1234abc:api-key:MyAPIKey", "createdByAccountName": "Salespoint", "createdAt": "2021-08-25T00:02:49.488Z", "status": "created", "url": "https://app.centrapay.com/connect/1234", "updatedBy": "crn:1234abc:api-key:MyAPIKey", "updatedAt": "2022-08-25T00:02:49.488Z", "walletId": "vendswift-nz", "walletName": "VendSwift"}