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,
- "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",
- "themeId": "be4bc9c1-c3fb-43c8-ab1a-908a86123682"
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb3JyZWxhdGlvbm...",
- "expires": 1641990742
}
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": "email address"
}
], - "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"
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb3JyZWxhdGlvbm...",
- "expires": 1641990742
}
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
{- "customerRef": "customer1",
- "direction": "DEBIT",
- "schemeId": "299EED4F2F04915CCAFC50E17103179F",
- "expirySeconds": 500,
- "amount": 1.23,
- "currency": "GBP",
- "country": "UK",
- "billingStreet1": "Flat 30 Lynton Mansions",
- "billingStreet2": "53 Cottington St",
- "billingCity": "London",
- "billingState": "California",
- "billingCountry": "United Kingdom",
- "billingPostCode": "SE1 4BN",
- "customerEmail": "JohnDangerSmith@gmail.com",
- "cardholderName": "John Danger Smith",
- "customerMobilePhone": "07723456789",
- "themeId": "8BB3BCDB-A0EB-4328-8C92-E596E3D7A63C",
- "bankAccount": {
- "accountHolderName": "John James",
- "number": "234234234",
- "extraCode": "234234"
}
}
{- "sessionToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb3JyZWxhdGlvbm...",
- "expires": 1641990742
}