curl https://api.onepay.la/v1/request-to-pay/daviplata \
-X POST \
-H "Authorization: Bearer sk_test_xxx" \
-H "Content-Type: application/json" \
-H "x-idempotency: daviplata-001" \
-d '{
"customer_id": "9dd4158b-0e45-42bc-b56f-a4c1f856814d",
"amount": 10000,
"document": "12345678",
"document_type": "CC",
"phone": "+573167591030",
"title": "Cobro de servicio",
"external_id": "order-12345"
}'
{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "daviplata",
"status": "pending",
"currency": "COP",
"payment_method_type": "daviplata",
"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"
}
Crea un Request to Pay para Daviplata.
curl https://api.onepay.la/v1/request-to-pay/daviplata \
-X POST \
-H "Authorization: Bearer sk_test_xxx" \
-H "Content-Type: application/json" \
-H "x-idempotency: daviplata-001" \
-d '{
"customer_id": "9dd4158b-0e45-42bc-b56f-a4c1f856814d",
"amount": 10000,
"document": "12345678",
"document_type": "CC",
"phone": "+573167591030",
"title": "Cobro de servicio",
"external_id": "order-12345"
}'
{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "daviplata",
"status": "pending",
"currency": "COP",
"payment_method_type": "daviplata",
"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"
}
CC, CE, TI.curl https://api.onepay.la/v1/request-to-pay/daviplata \
-X POST \
-H "Authorization: Bearer sk_test_xxx" \
-H "Content-Type: application/json" \
-H "x-idempotency: daviplata-001" \
-d '{
"customer_id": "9dd4158b-0e45-42bc-b56f-a4c1f856814d",
"amount": 10000,
"document": "12345678",
"document_type": "CC",
"phone": "+573167591030",
"title": "Cobro de servicio",
"external_id": "order-12345"
}'
{
"id": "4ba8a568-b5c9-4446-a858-b6d00dab341e",
"description": "Charge description",
"amount": 10000,
"amount_label": "Charge amount",
"source": "daviplata",
"status": "pending",
"currency": "COP",
"payment_method_type": "daviplata",
"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?