CustomerToken
Create a checkout session token to be used with the whitelabel (checkout) component
Based on the customerType
selection, the validation of the payload in this endpoint changes with the following fields: - B2C: customerFirstName
, customerLastName
- B2B: companyName
Customer details for the session token
Session token created successfully
Bad Request
Unauthorized
Forbidden
B2B flow
{- "orderRef": "order-ref-123",
- "instructionRef": "instruction-ref-123",
- "expirySeconds": 500,
- "themeId": "be4bc9c1-c3fb-43c8-ab1a-908a86123682",
- "billingHouseNumber": "4",
- "billingStreet1": "Thing Mansions",
- "billingStreet2": "Somewhere St",
- "billingCity": "Placington",
- "billingState": "Hampshire",
- "billingCountry": "United Kingdom",
- "billingPostCode": "AB1 2CD",
- "customerEmail": "john.smith@example.com",
- "customerMobilePhone": "07123456789",
- "cardholderName": "MR J SMITH",
- "companyName": "Payments LLC",
- "customerType": "B2B",
- "authorizationSource": "WEB",
- "authorizationFrequency": "Monthly",
- "bankAccount": {
- "accountHolderName": "MR J SMITH",
- "number": "10001000",
- "extraCode": "100100"
}, - "channels": [
- {
- "type": "Email",
- "destination": "an-email@duckcreek.com"
}
]
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9eyJjb3JyZWxhdGlvbm",
- "expires": 1641990742,
- "sessionId": "099fc738-631b-495d-b4ba-64c84da0b25a"
}
CustomerToken
This endpoint creates a new session token, as well as a pay-by-link object with the instructions of sending a link for completing the payment.
Customer details for the session token, and pay-by-link details for future sending.
Session token created successfully
Bad Request
Unauthorized
Forbidden
{- "orderRef": "order-ref-123",
- "instructionRef": "instruction-ref-123",
- "channels": [
- {
- "type": "SMS",
- "destination": "string"
}
], - "expirySeconds": 500,
- "themeId": "8BB3BCDB-A0EB-4328-8C92-E596E3D7A63C"
}
{- "payByLinkId": "df6b16ec-6a19-4091-9d4e-2d0603077655",
}
CustomerToken
Create a checkout session token for the management of a mandate.
Customer details for the session token
Session token created successfully
Bad Request
Unauthorized
Forbidden
B2B flow
{- "customerRef": "customer-ref-123",
- "mandateId": "be4bc9c1-c3fb-43c8-ab1a-908a86123682",
- "action": "Amendment",
- "expirySeconds": 500,
- "billingHouseNumber": "4",
- "billingStreet1": "Thing Mansions",
- "billingStreet2": "Somewhere St",
- "billingCity": "Placington",
- "billingState": "Hampshire",
- "billingCountry": "United Kingdom",
- "billingPostCode": "AB1 2CD",
- "customerEmail": "john.smith@example.com",
- "customerMobilePhone": "07123456789",
- "companyName": "Payments LLC",
- "themeId": "be4bc9c1-c3fb-43c8-ab1a-908a86123682",
- "bankAccount": {
- "accountHolderName": "MR J SMITH",
- "number": "10001000",
- "extraCode": "100100"
}, - "channels": [
- {
- "type": "Email",
- "destination": "an-email@duckcreek.com"
}
]
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9eyJjb3JyZWxhdGlvbm",
- "expires": 1641990742,
- "sessionId": "099fc738-631b-495d-b4ba-64c84da0b25a"
}
CustomerToken
Create a checkout session token for the generation of a financial instrument.
Customer details for the session token
Session token created successfully
Bad Request
Unauthorized
Forbidden
B2C flow
{- "customerRef": "customer-ref-123",
- "direction": "DEBIT",
- "schemeId": "299EED4F2F04915CCAFC50E17103179F",
- "expirySeconds": 500,
- "currency": "GBP",
- "country": "GB",
- "billingHouseNumber": "4",
- "billingStreet1": "Thing Mansions",
- "billingStreet2": "Somewhere St",
- "billingCity": "Placington",
- "billingState": "Hampshire",
- "billingCountry": "GB",
- "billingPostCode": "AB1 2CD",
- "customerEmail": "JohnDangerSmith@imbursepayments.com",
- "cardholderName": "MR J SMITH",
- "customerFirstName": "John",
- "customerLastName": "Smith",
- "customerMobilePhone": "07123456789",
- "themeId": "be4bc9c1-c3fb-43c8-ab1a-908a86123682",
- "customerType": "B2C",
- "authorizationSource": "WEB",
- "authorizationFrequency": "Monthly",
- "bankAccount": {
- "accountHolderName": "MR J SMITH",
- "number": "10001000",
- "extraCode": "100100"
}, - "channels": [
- {
- "type": "SMS",
- "destination": "+4401234567890"
}
]
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9eyJjb3JyZWxhdGlvbm",
- "expires": 1641990742,
- "sessionId": "099fc738-631b-495d-b4ba-64c84da0b25a"
}
tenant-white-label-read
Get the details of a whitelabel session.
Session details
Bad Request
Unauthorized
Forbidden
Successful Checkout session
{- "sessionId": "59d3068b-f5f3-4212-978f-e2b9181f302e",
- "sessionType": "Checkout",
- "customerRef": "customer1",
- "status": "SUCCESS",
- "paymentOptionSelected": "VISA",
- "instructionRef": "instruction1",
- "orderRef": "order1"
}