| Environment | Base URL |
|---|---|
| Dev | https://test.paywith.billpocket.com |
| Live | https://paywith.billpocket.com |
| Field | Purpose |
|---|---|
| Url de Webhook | Receives the transaction result as a webhook |
| Url de redirección | Redirects the customer after payment completes |
https://mysite.com/result).POST /api/v1/checkout{
"apiKey": "123ABC0-123ABC0-123ABC0-123ABC0",
"externalId": "ORD-001",
"items": [
"Product 1",
"Product 2",
"Product 3"
],
"total": 1000,
"rates": [3, 6]
}| Field | Type | Required | Description |
|---|---|---|---|
apiKey | string | ✅ | Your API key |
externalId | string | ✅ | Your identifier for this checkout |
items | array | ✅ | List of item names |
total | number | ✅ | Amount in MXN |
rates | array | — | Available MSI installment options (e.g., [3, 6, 12]) |
{
"checkoutId": "e8bfb912-c51a-4c62-bb22-876f1f9cc6d1",
"externalId": "ORD-001",
"total": "1000.00",
"items": ["Product 1", "Product 2", "Product 3"],
"rates": [3, 6],
"description": "Example",
"createdAt": "2024-06-12T03:07:25.049Z",
"updatedAt": "2024-06-12T03:07:25.049Z"
}checkoutId from the response to the base URL:| Environment | Payment form URL |
|---|---|
| Dev | https://test.paywith.billpocket.com/checkout/{checkoutId} |
| Live | https://paywith.billpocket.com/checkout/{checkoutId} |
GET /api/v1/checkout/detail/{checkoutId}?apiKey={apiKey}{
"checkout": {
"items": ["Product 1", "Product 2"],
"rates": [3, 6],
"externalId": "ORD-001",
"total": "1000.00",
"createdAt": "2024-06-12T01:33:36.593Z",
"updatedAt": "2024-06-12T01:34:33.001Z"
},
"transaction": {
"status": 1,
"message": "APROBADA",
"opId": "128840",
"txnISOCode": "00",
"authNumber": "BP9274",
"ticketUrl": "305214b8c6c5a689118454a69b2214927d5ddc52",
"maskedPAN": "401200******0071"
}
}Got a suggestion on this documentation? Contact us.