Antes de iniciar la integración, asegúrate de preparar los datos de tu transacción.
Y preparar los actores a los cuales se dividira el cobro.
[
{
"Identifier": "17XXXXXXXX001",
"Type": 3,
"Amount": 848
},
{
"Identifier": "+593984XXXXXX",
"Type": 4,
"Amount": 151
}
]{
"amount": 1060,
"amountWithoutTax": 600,
"amountWithTax": 400,
"tax": 60,
"service": 0,
"tip": 0,
"currency": "USD",
"clientTransactionId": "SP260521-1658-3040",
"reference": "Prueba Boton con Split May 2026",
"storeId": "99c14ad3-c9f8-466e-b73f-609e39284538",
"responseUrl": "https:\/\/www.payphone.website\/api-payphone\/API-CONFIRMACION\/ConfirmacionSplit.php",
"cancellationUrl": "https:\/\/www.payphone.website\/api-payphone\/API-CONFIRMACION\/ConfirmacionSplit.php",
"order": {
"billTo": {
"address1": "Conjunto Lordaeron",
"address2": "Azeroth",
"country": "EC",
"state": "Azuay",
"locality": "Cuenca",
"firstName": "Arthas",
"lastName": "Menethil",
"phoneNumber": "+593984010203",
"email": "amenethil@warcraft.com",
"postalCode": "EC090108",
"customerId": 5,
"ipAddress": "127.0.0.1"
},
"lineItems": [
{
"productName": "Horizon Forbidden West",
"unitPrice": 300,
"quantity": 2,
"totalAmount": 600,
"taxAmount": 0,
"productSKU": "3342.0014",
"productDescription": "Videojuego de Playstation 4"
},
{
"productName": "The Legend of Zelda",
"unitPrice": 400,
"quantity": 1,
"totalAmount": 460,
"taxAmount": 60,
"productSKU": "5342.0044",
"productDescription": "Videojuego de Nintendo Switch"
}
]
},
"documentId": null,
"phoneNumber": null,
"email": null,
"optionalParameter": null,
"lat": null,
"lng": null,
"lang": "es",
"transferTo": "YctgHqo7RoaG0ibIGfLfAOUCFSjhwJLTgh5poUY9XARFdWFb5a0tplifDIHE250Jk+WZN7FwWV8PZh7xBK57ayqiJUQMh3RN\/MVFqkTw4I52O6\/HhaQeYl\/QzK3vfcFWXYjdw2Rlrgic4xXWocgVTA=="
} {
"message": "Ya existe una transacción con el ClientTransactionId especificado",
"errorCode": 23
}Algo salió mal al enviar la solicitud POST al API de Payphone.
Verifica los datos enviados, el token de autorización o tu conexión.
Consulta la documentación oficial para conocer todos los detalles, parámetros disponibles, estructuras de respuesta y buenas prácticas: