Get installment information
Installments
Using the Installment Service API you can ask us to provide you with information related to the available installment options, based on the country, amount and optionally payment productId and bin number.
Request
Using this endpoint you can retrieve the latest Installment Programs. Optionally you can filter the returned sets on a bin and/or a paymentProductId. The Installment Programs are always returned in an array.
PayloadGetInstallmentRequest
Using the Installment Service API you can ask us to provide you with information related to the available installment options, based on the country, amount and optionally payment productId and bin number.
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
object | no | read close | |
close
DescriptionObject containing amount and ISO currency code attributes
|
|||
amount | integer (12) | yes | read close |
close
DescriptionAmount in cents and always having 2 decimals
|
|||
currencyCode | string (3) | yes | read close |
close
DescriptionThree-letter ISO currency code representing the currency for the amount
|
|||
bin | string (19) | no | read close |
close
DescriptionThe first digits of the card number from left to right with a minimum of 6 digits
|
|||
countryCode | string (2) | no | read close |
close
DescriptionISO 3166-1 alpha-2 country code
|
|||
paymentProductId | integer (5) | no | read close |
close
DescriptionPayment product identifier
Please see payment products for a full overview of possible values. |
Request example
This service allows you to retrieve information and details regarding the installment plans, providers and options.
-
$amountOfMoney = new AmountOfMoney(); $amountOfMoney->amount = 123; $amountOfMoney->currencyCode = 'EUR'; $body = new GetInstallmentRequest(); $body->amountOfMoney = $amountOfMoney; $body->bin = '123455'; $body->countryCode = 'NL'; $body->paymentProductId = 123; $response = $client->v1()->merchant('merchantId')->installments()->getInstallmentsInfo($body);
Responses
Please find below the possible responses for this API endpoint
Response 200 - OKInstallmentOptionsResponse
An HTTP 200 response is returned with the details of the installments plan(s) and option(s)
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
array of object | no | read close | |
close
DescriptionArray containing installment options their details and characteristics
|
|||
object | no | read close | |
close
DescriptionObject containing the available intallment options
|
|||
object | no | read close | |
close
DescriptionObject containing information for the client on how best to display the installment options
|
|||
displayOrder | integer | no | read close |
close
DescriptionDetermines the order in which the installment options should be shown (sorted ascending). In countries like Turkey there are multiple loyalty programs that offer installments
|
|||
label | string | no | read close |
close
DescriptionName of the installment option
|
|||
logo | string | no | read close |
close
DescriptionPartial URL that you can reference for the image of this installment provider. You can use our server-side resize functionality by appending '?size={{width}}x{{height}}' to the full URL, where width and height are specified in pixels. The resized image will always keep its correct aspect ratio.
|
|||
id | string | no | read close |
close
DescriptionThe ID of the installment option in our system
|
|||
array of object | no | read close | |
close
DescriptionObject containing information about installment plans
|
|||
object | no | read close | |
close
DescriptionObject containing information about the installment option
|
|||
object | no | read close | |
close
DescriptionThe amount that will be paid per installment. The total amount of amountOfMoneyPerInstallment x numberOfInstallments can not be higher than the total amount of this transaction, although we will not validate that.
For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer.
|
|||
amount | integer (12) | yes | read close |
close
DescriptionAmount in cents and always having 2 decimals
|
|||
currencyCode | string (3) | yes | read close |
close
DescriptionThree-letter ISO currency code representing the currency for the amount
|
|||
object | no | read close | |
close
DescriptionObject containing the total amount and ISO currency code attributes
|
|||
amount | integer (12) | yes | read close |
close
DescriptionAmount in cents and always having 2 decimals
|
|||
currencyCode | string (3) | yes | read close |
close
DescriptionThree-letter ISO currency code representing the currency for the amount
|
|||
frequencyOfInstallments | string | no | read close |
close
DescriptionThe frequency in which the installments will be collected from the customer.
The possible values are:
For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), only the value monthly is valid. |
|||
installmentPlanCode | integer | no | read close |
close
DescriptionThe code for the installment plan. The possible values are:
|
|||
interestRate | string | no | read close |
close
DescriptionThe interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%
For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer. |
|||
numberOfInstallments | integer (5) | no depends no yes no | read close |
close
DescriptionThe number of installments in which this transaction will be paid, which can be used for card payments at supported acquirers, or with specific payment products. Only used with some acquirers. In case you send in the details of this object, only the payment products (or combination of card products and acquirers) that support installments will be shown on the MyCheckout hosted payment pages. If this property is not provided the customer will not see details on the installment plan in a HostedCheckout.
For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), there is a maximum of 12 installments. |
Response example
This scenario you will probably use the most
-
{ "installmentOptions" : [ { "displayHints" : { "label" : "Maxime", "displayOrder" : 1, "logo" : "https://assets.pay1.checkout.worldline-solutions.com/somefilename.png" }, "id" : "Maxime", "installmentPlans" : [ { "numberOfInstallments" : 1, "installmentPlanCode" : 0, "interestRate" : "0.000000", "amountOfMoneyTotal" : { "amount" : 10000, "currencyCode" : "EUR" } }, { "numberOfInstallments" : 2, "installmentPlanCode" : 2, "interestRate" : "4.000000", "frequencyOfInstallments" : "monthly", "amountOfMoneyPerInstallment" : { "amount" : 5200, "currencyCode" : "EUR" }, "amountOfMoneyTotal" : { "amount" : 10400, "currencyCode" : "EUR" } }, { "numberOfInstallments" : 4, "installmentPlanCode" : 4, "interestRate" : "4.000000", "frequencyOfInstallments" : "monthly", "amountOfMoneyPerInstallment" : { "amount" : 2600, "currencyCode" : "EUR" }, "amountOfMoneyTotal" : { "amount" : 10400, "currencyCode" : "EUR" } } ] }, { "displayHints" : { "label" : "Bonus", "displayOrder" : 2, "logo" : "https://assets.pay1.checkout.worldline-solutions.com/somefilename.png" }, "id" : "Bonus", "installmentPlans" : [ { "numberOfInstallments" : 1, "installmentPlanCode" : 0, "interestRate" : "0.000000", "amountOfMoneyTotal" : { "amount" : 10000, "currencyCode" : "EUR" } }, { "numberOfInstallments" : 2, "installmentPlanCode" : 2, "interestRate" : "4.000000", "frequencyOfInstallments" : "monthly", "amountOfMoneyPerInstallment" : { "amount" : 5200, "currencyCode" : "EUR" }, "amountOfMoneyTotal" : { "amount" : 10400, "currencyCode" : "EUR" } }, { "numberOfInstallments" : 4, "installmentPlanCode" : 4, "interestRate" : "4.000000", "frequencyOfInstallments" : "monthly", "amountOfMoneyPerInstallment" : { "amount" : 2600, "currencyCode" : "EUR" }, "amountOfMoneyTotal" : { "amount" : 10400, "currencyCode" : "EUR" } } ] } ] }
Response 400 - Bad requestErrorResponse
There was an error in the request, or the country you submitted does not allow installments or the filters you submitted result in no installment options
Properties
|
|||
Property | Type | Required | Details |
---|---|---|---|
errorId | string | yes | read close |
close
DescriptionUnique reference, for debugging purposes, of this error response
|
|||
array of object | yes | read close | |
close
DescriptionList of one or more errors
|
|||
object | no | read close | |
category | string | no | read close |
close
DescriptionCategory the error belongs to. The category should give an indication of the type of error you are dealing with.
Possible values:
|
|||
code | string | yes | read close |
close
DescriptionError code
|
|||
httpStatusCode | integer | no | read close |
close
DescriptionHTTP status code for this error that can be used to determine the type of error
|
|||
id | string | no | read close |
close
DescriptionID of the error. This is a short human-readable message that briefly describes the error.
|
|||
message | string | no | read close |
close
DescriptionHuman-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
|
|||
propertyName | string | no | read close |
close
DescriptionReturned only if the error relates to a value that was missing or incorrect.
Contains a location path to the value as a JSonata query. Some common examples:
|
|||
requestId | string | no | read close |
close
DescriptionID of the request that can be used for debugging purposes
|
Response example
This scenario you will probably use the most
-
{ "errorId" : "15eabcd5-30b3-479b-ae03-67bb351c07e6-00000092", "errors" : [ { "code" : "20000000", "propertyName" : "bankAccountBban.accountNumber", "message" : "PARAMETER_NOT_FOUND_IN_REQUEST" } ] }