Headers
Token único para garantizar la idempotencia de la petición
Intent generado al crear el Request to Pay.
Confirma un Request to Pay para Nequi.
curl --request POST \
--url https://api.onepay.la/v1/request-to-pay/nequi/{id}/confirm \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency: <x-idempotency>'{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "nequi",
"status": "pending",
"currency": "COP",
"payment_method_type": "nequi",
"payment_method_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"created_at": "2022-01-01T00:00:00.000Z",
"paid_at": null,
"remarks": null,
"is_test": false,
"network_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"external_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e"
}
{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "nequi",
"status": "pending",
"currency": "COP",
"payment_method_type": "nequi",
"payment_method_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"created_at": "2022-01-01T00:00:00.000Z",
"paid_at": null,
"remarks": null,
"is_test": false,
"network_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"external_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e"
}
Was this page helpful?
curl --request POST \
--url https://api.onepay.la/v1/request-to-pay/nequi/{id}/confirm \
--header 'Authorization: Bearer <token>' \
--header 'x-idempotency: <x-idempotency>'{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "nequi",
"status": "pending",
"currency": "COP",
"payment_method_type": "nequi",
"payment_method_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"created_at": "2022-01-01T00:00:00.000Z",
"paid_at": null,
"remarks": null,
"is_test": false,
"network_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"external_id": "4ba8a568-b5c9-4446-a858-b6d00dab341e"
}