Check Eligibility
POST/check-eligibility
As your customer begins to checkout, use this endpoint to verify their overall eligibility for Splitit installment plans and to determine plans for which they are eligible. This endpoint can be called repeatedly before and during checkout, for example you may call it after each field on a page is filled out. The Splitit API compares and updates the plan based on each new body as it arrives.
Request
Header Parameters
Possible values: [DisableReprocessingOnError
, AllowReprocessingOnError
]
AllowReprocessingOnError is the default, which means that if you have a failed response or a timeout, the original request is marked as having failed, but a new request can be sent using the same key and will be reprocessed; if you set it to DisableReprocessingOnError, a request with the same key will not be reprocessed after a failure, and if the key is used again, you will get the same error response you got the first time
- application/json
Body
PlanData
object
required
The merchant terminal identifier
The order total amount
Possible values: [InStore
, PhoneOrder
, ECommerce
]
How purchase was made (default is ECommerce
)
Reference order number for merchant's use
Tags
object
CardDetails
object
Possible values: [Mastercard
, Visa
, AmericanExpress
, Maestro
, JCB
, CUP
, UPI
, Discover
, Other
]
Possible values: [Credit
, Debit
, Charge
, Other
, Prepaid
, VisaDeferredDebit
, NetworkOnly
]
BillingAddress
object
ISO 3166 Country name OR 2-character code OR 3-character code
ISO 3166-2 State
Responses
- 200
- 401
- 403
- 404
- 422
- 500
- 400-511
- 400-542
- 400-563
- 400-564
- 400-599
- 400-806
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Either "Splitit" or "Visa"
PaymentPlanOptions
object[]
Links
object
Terms and conditions text set by external provider
The interval of the installments, either monthly or biweekly
{
"InstallmentProvider": "string",
"PaymentPlanOptions": [
{
"NumberOfInstallments": 0,
"FirstInstallmentAmount": 0,
"InstallmentAmount": 0,
"LastInstallmentAmount": 0,
"Links": {
"PrivacyPolicyUrl": "string",
"TermsAndConditionsUrl": "string",
"LearnMoreUrl": "string"
},
"TermsAndConditionsBrief": "string",
"InstallmentFrequency": "string"
}
]
}
Token is not authorized or is expired
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
Resource Does Not Exist: For all APIs, if an invalid plan number is passed in the URL, this error will be returned
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
General Server Error : Server encountered an unexpected condition
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
InvalidAmount: Invalid amount sent, such as below your minimum amount or above your maximum amount.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
InvalidCCCardBrandNotSupported: Sorry but we do not accept this type of credit card. Please use [[SupportedCardBrands]] to complete your purchase.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
InvalidCurrency_NotSupportedByTerminal: Sorry, but this currency is not currently accepted at this terminal.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
CreditCardIsMissing: Some information is missing. Please enter all requested credit card details.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
General Error: Sorry. There has been an error. Please try again.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}
TerminalApiKeyMissing: Terminal ID not found.
- application/json
- Schema
- Example (from schema)
Schema
Error
object
ExtraData
object
{
"TraceId": "string",
"Error": {
"Code": "string",
"Message": "string",
"AdditionalInfo": "string",
"ExtraData": {}
}
}