Create a payment
Environments
https://api.aplazo.net
Initiates a new payment process using Aplazo's in-store payment system.
Authorizations
Body
custLoginstring · min: 10 · max: 10RequiredExample:
Customer phone number.
5527338972
Pattern: ^[0-9]{10}$
shopIdstringRequiredExample:
Aplazo identifier for the store.
475
Pattern: ^\d+$
cartIdstringRequiredExample:
Identifier in the merchant POS for the order/transaction, unique across all stores.
cart-123
webhookUrlstring · uriRequiredExample:
Merchant-provided URL where Aplazo will communicate the payment confirmation.
https://www.merchant-url.com/webhook
totalAmountnumber · floatRequiredExample:
Total amount of the order, including discounts.
116
orderDiscountnumber · floatRequiredExample:
Discount at the order level applied in the merchant system (informational only).
25
discountTypestring · enumRequiredExample:
Type of discount applied ("a" for amount, "p" for percentage).
a
Possible values: commChannelstring · enumRequiredExample:
Type of communication to be sent to the customer ("w" for WhatsApp, "s" for SMS, "q" for QR code).
q
Possible values: Responses
200
Payment created successfully. Example with commChannel 'q' for QR Code.
application/json
post
POST /api/pos/loan HTTP/1.1
Host:
api_token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 585
{
"custLogin": "5527338972",
"shopId": "475",
"cartId": "cart-123",
"webhookUrl": "https://www.merchant-url.com/webhook",
"products": [
{
"id": "xyz-123",
"externalId": "item-1",
"quantity": 1,
"unitPrice": 300,
"discount": 0,
"discountType": "p",
"discountPrice": 300,
"title": "T-Shirt",
"description": "Red Tshirt Size M"
},
{
"id": "abc-456",
"externalId": "item-2",
"quantity": 1,
"unitPrice": 800,
"discount": 0,
"discountType": "p",
"discountPrice": 800,
"title": "Jeans",
"description": "Dark Blue Jeans 30 x 32"
}
],
"taxes": [
{
"price": 16,
"title": "IVA"
}
],
"totalAmount": 116,
"orderDiscount": 25,
"discountType": "a",
"commChannel": "q"
}
200
Payment created successfully. Example with commChannel 'q' for QR Code.
{
"custLogin": "5527338972",
"zipCode": null,
"shopId": "475",
"cartId": "cart-123",
"webhookUrl": "https://www.merchant-url.com/webhook",
"products": [
{
"id": "xyz-123",
"externalId": "merchant-item-id",
"quantity": 3,
"unitPrice": 125,
"discount": 25,
"discountType": "a",
"discountPrice": 100,
"title": "Cotton Shirt",
"description": "Cotton Shirt Size: M Color: Red"
}
],
"taxes": [
{
"price": 16,
"title": "IVA"
}
],
"totalAmount": 116,
"orderDiscount": 25,
"discountType": "a",
"qr": null
}
Last updated
Was this helpful?