v1
latestOpenAPI 3.0.02026-07-2671142187.3 KBHelcim Pay
Creates a HelcimPay.js Checkout Session
post/helcim-pay/initialize
Headers
api-tokenstring required
API Access Token
Request body
Example request
{
"paymentType": "purchase",
"amount": 100,
"currency": "CAD",
"customerCode": "CST1000",
"invoiceNumber": "INV1000",
"paymentMethod": "cc-ach",
"allowPartial": 1,
"hasConvenienceFee": 1,
"taxAmount": 3.67,
"hideExistingPaymentDetails": 1,
"setAsDefaultPaymentMethod": 1,
"terminalId": 1,
"confirmationScreen": true,
"digitalWallet": "{\"google-pay\": 1}",
"displayContactFields": 1,
"customStyling": {
"appearance": "light",
"brandColor": "815AF0",
"cornerRadius": "rounded",
"ctaButtonText": "pay"
},
"customerRequest": {
"customerCode": "CST1000",
"contactName": "John Smith",
"businessName": "Best Company",
"cellPhone": "123-456-7890",
"billingAddress": {
"name": "John Smith/Helcim",
"street1": "123 Street",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"phone": "1234567890",
"email": "john@example.com"
},
"shippingAddress": {
"name": "John Smith/Helcim",
"street1": "123 Street",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"phone": "1234567890",
"email": "john@example.com"
}
},
"invoiceRequest": {
"invoiceNumber": "INV1000",
"shipping": {
"details": "Standard Shipping",
"address": {
"name": "John Smith/Helcim",
"street1": "123 Street",
"city": "Calgary",
"province": "AB",
"country": "CAN",
"postalCode": "H0H0H0",
"phone": "1234567890",
"email": "john@example.com"
}
},
"pickup": {
"name": "John Smith"
},
"tax": {
"amount": 1.25,
"details": "GST"
},
"discount": {
"amount": 5.25,
"details": "Spring Sale"
}
}
}Response
Successful