Saltar al contenido
Guías
Referencia de API
establepayment:create

Iniciar pago

POST/v1/payments/start

Autorización

bearerAuth
AutorizaciónBearer <token>

Token de acceso OAuth 2.0 emitido por Ecomiq Auth.

Ubicación: header

Cuerpo de la solicitud

application/json

Definiciones TypeScript

Usa esta definición en TypeScript.

Cuerpo de la respuesta

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/payments/start" \  -H "Content-Type: application/json" \  -d '{    "orderId": "string",    "orderGroup": null,    "paymentMethodCode": "string",    "amount": 0.1,    "currency": "string",    "externalRef": null,    "payerEmail": null  }'
{  "transactionId": "string",  "status": "pending",  "isCaptured": true,  "paymentMethodCode": "string",  "code": "string",  "cardType": null,  "amount": 0.1,  "reference": "string",  "providerId": null,  "publicConfiguration": {    "property1": "string",    "property2": "string"  },  "clientSecret": null,  "checkoutUrl": null,  "checkoutHtml": null,  "qrCode": null,  "receiptUrl": null,  "expiresAt": null}