Loans
Manage and retrieve information about loan options available through Pay Later.
Explore Pay Later loan offers tailored to specific baskets or orders.
Retrieve loan information
Retrieve detailed Pay Later loan information associated with a specific shopping basket, including loan status, approved amounts and detailed basket information.
Retrieve BNPL loan details for a given basket, including the full basket breakdown, merchant application context and the current Pay Later status with approved loan amount.
Query parameters
- Name
basketId- Type
- string
- Description
The public unique identifier of the basket to retrieve loan information for.
- Name
orderIdentifier- Type
- string
- Description
The merchant-defined identifier of the order linked to the basket (optional).
- Name
api-version- Type
- string
- Description
The requested API version. The parameter is optional. Default value:
2.0.
Headers
- Name
X-Application-ID- Type
- string
- Description
The ID of the application making the request. This header parameter is required for authentication and identification purposes.
- Name
Ocp-Apim-Subscription-Key- Type
- string
- Description
A unique identifier related to the registered merchant in the API environment, available within the application's details.
Response attributes
- Name
success- Type
- boolean
- Description
A boolean indicating whether the Pay Later loan retrieval request was successful.
- Name
data- Type
- object
- Description
Detailed information related to the BNPL loan, containing:
basket(object): The full basket associated with the loan, including:id(integer): The internal numeric identifier of the basket.publicBasketId(string): The public identifier of the basket.dateCreated(string): The date and time when the basket was created (ISO 8601 format).basketValue(number): The total monetary value of the basket.merchantId(integer): The internal identifier of the merchant.merchantName(string): The display name of the merchant.requestId(string): The unique request identifier (UUID format).orderIdentifier(string): The merchant-defined order identifier.bnplAmount(number): The amount approved or requested for BNPL financing.basketProducts(array): The list of products in the basket. Each product includes:Product Number(string): The merchant-assigned SKU or product reference code (e.g.,"SKU-00123").name(string): The display name of the product (e.g.,"Wireless Headphones").quantity(number): The number of units of this product in the basket (e.g.,2).Quantity Units(string): The unit of measurement for the quantity (e.g.,"pcs","kg").Unit Price(number): The price per single unit before tax and discounts (e.g.,49.99).Tax Rate(number): The applicable tax rate as a percentage (e.g.,24.00for 24% VAT).Total Amount(number): The total line amount for this product, calculated as quantity multiplied by unit price (e.g.,99.98).Total Discount Amount(number): The total discount applied to this product line (e.g.,10.00). Returns0if no discount is applied.Total Tax Amount(number): The total tax amount calculated for this product line (e.g.,17.41).Product URL(string): The URL of the product's webpage on the merchant's site.Product Image URL(string): The URL of the product's image.
Merchant Data(string): Additional merchant-specific data attached to the basket.phoneNumber(string): The phone number of the customer.email(string): The email address of the customer.merchantCode(string): The unique code identifying the merchant.merchantApplication(object): The merchant application context linked to the basket, including:applicationId(string): The unique identifier of the merchant application in UUID format.successCallbackUrl(string): The server-to-server callback URL that receives a notification when the BNPL process completes successfully.failCallbackUrl(string): The server-to-server callback URL that receives a notification when the BNPL process fails or is declined.created(string): The date and time the application was created, in ISO 8601 format.successRedirectURI(string): The client-side URI the customer is redirected to after a successful BNPL approval.failureRedirectURI(string): The client-side URI the customer is redirected to after a failed or declined BNPL request.
expirationDate(string): The basket expiration date and time (ISO 8601 format).qrCodeData(string): The data encoded in the QR code (byte-encoded).qrCodeDataLink(string): A URL link to the QR code image.
payLaterInformation(object): The BNPL loan status details, including:bnplRequestId(string): The unique identifier of the BNPL loan request.status(string): The current status of the loan (e.g., pending, approved, rejected).approvedLoanAmount(number): The loan amount that has been approved.
- Name
message- Type
- string
- Description
A descriptive message providing additional context about the loan request status.
- Name
errors- Type
- array
- Description
An array of error objects detailing any issues encountered during the Pay Later loan retrieval process, including:
code(string): A machine-readable code representing the error type.message(string): A human-readable message providing additional information about the loan request status or outcome.
- Name
metadata- Type
- object
- Description
A key-value object containing additional information related to the Pay Later loan request, typically used for internal tracking or integration purposes.
- Name
type- Type
- string
- Description
The type or category of the error response, indicating its nature or classification.
- Name
title- Type
- string
- Description
A brief, descriptive title summarizing the error response message.
- Name
status- Type
- integer
- Description
The HTTP status code of the response, indicating the success or failure of the request.
- Name
detail- Type
- string
- Description
A detailed description or explanation of the error, providing additional context.
- Name
instance- Type
- string
- Description
The specific instance or occurrence to which the response pertains, providing a unique identifier or reference.
Request
curl -X GET "/loans/bnpl?basketId=string&orderIdentifier=string&api-version=2.0" \
-H 'Accept: application/json' \
-H 'X-Application-ID: string' \
-H 'Ocp-Apim-Subscription-Key: string'
Response examples
{
"success": true,
"data": {
"basket": {
"id": 12345,
"publicBasketId": "",
"dateCreated": "",
"basketValue": 250.00,
"merchantId": 100,
"merchantName": "",
"requestId": "",
"orderIdentifier": "",
"bnplAmount": 250.00,
"basketProducts": [
{
"Product Number": "",
"name": "",
"quantity": 1,
"Quantity Units": "",
"Unit Price": 250.00,
"Tax Rate": 24.00,
"Total Amount": 250.00,
"Total Discount Amount": 0,
"Total Tax Amount": 48.39,
"Product URL": "",
"Product Image URL": ""
}
],
"Merchant Data": "",
"phoneNumber": "",
"email": "",
"merchantCode": "",
"merchantApplication": {
"applicationId": "",
"successCallbackUrl": "",
"failCallbackUrl": "",
"created": "",
"successRedirectURI": "",
"failureRedirectURI": ""
},
"expirationDate": "",
"qrCodeData": "",
"qrCodeDataLink": ""
},
"payLaterInformation": {
"bnplRequestId": "",
"status": "Approved",
"approvedLoanAmount": 250.00
}
},
"message": "",
"errors": [],
"metadata": {}
}
Responses
| Status | Description | Notes |
|---|---|---|
| 200 | OK | The BNPL loan information for the given basket. |
| 400 | Bad Request | BasketId cannot be empty, or Application ID was not found. |
| 404 | Not Found | The BNPL loan with the given basket ID was not found. |
| 500 | Internal Server Error | Internal server error. |