Create a payment
Environments
https://api.aplazo.net/api
Initiates an Aplazo loan request or payment, generating a checkout URL for the merchant's customer.
Authorizations
Body
totalPricenumberRequiredExample:
Total price of the cart or order.
2600
shopIdstringRequiredExample:
Identifier for the merchant's shop.
Prueba Tienda
cartIdstringRequiredExample:
Unique identifier for the shopping cart. Works as the merchant's external identifier.
cart-id-321
successUrlstring · uriRequiredExample:
URL to redirect the customer upon successful payment.
https://merchant-page.mx/Success_Aplazo/cartid1234.php
errorUrlstring · uriRequiredExample:
URL to redirect the customer upon payment failure.
https://merchant-page.mx/Error_Aplazo.php
cartUrlstring · uriRequiredExample:
URL for the customer's cart.
https://merchant-page.mx/Cart_Aplazo.php
webHookUrlstring · uriRequiredExample:
URL for webhook notifications related to the loan.
https://merchant-page.mx/order/hook
Responses
200
Loan created successfully. Returns a checkout URL for the customer.
application/json
400
Bad request. Missing or wrong required fields.
application/json
post
POST /loan HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 889
{
"totalPrice": 2600,
"shopId": "Prueba Tienda",
"cartId": "cart-id-321",
"successUrl": "https://merchant-page.mx/Success_Aplazo/cartid1234.php",
"errorUrl": "https://merchant-page.mx/Error_Aplazo.php",
"cartUrl": "https://merchant-page.mx/Cart_Aplazo.php",
"webHookUrl": "https://merchant-page.mx/order/hook",
"buyer": {
"addressLine": "Fake Street 123",
"email": "john@doe.com",
"firstName": "John",
"lastName": "Doe",
"phone": "5511113590",
"postalCode": "99999"
},
"products": [
{
"id": "product-01",
"count": 1,
"description": "Leather sneakers Size 8.5",
"imageUrl": "http://www.product-image.com/product-01",
"price": 1800,
"title": "Casual Sneakers"
},
{
"id": "product-02",
"count": 2,
"description": "White Tshirt Size M",
"imageUrl": "http://www.product-image.com/product-02",
"price": 800,
"title": "T-Shirt"
}
],
"discount": {
"price": 20,
"title": "Buen fin"
},
"shipping": {
"price": 0,
"title": "Envio Express"
},
"taxes": {
"price": 0,
"title": "IVA"
}
}
{
"url": "https://checkout.aplazo.net/main/ee58769d-ade7-469c-ac8f-eb9f89074e02",
"loanId": "155345",
"loanToken": "ee58769d-ade7-469c-ac8f-eb9f89074e02"
}
Response Examples
Success
Errors
Last updated
Was this helpful?