Request Payment
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"payment_amount": 90000,
"payment_type": "order",
"payment_method": "qr",
"transaction_id": "bf3486a1-0ab8-427b-9a9b-362e26e107eb",
"provider_code": "vnpay"
}
Request Code Samples
curl --location --request POST 'http://petfen-payment.local.com:8085/api/v1/payment/request' \
--header 'X-Auth-Service: Bearer ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"payment_amount": 90000,
"payment_type": "order",
"payment_method": "qr",
"transaction_id": "bf3486a1-0ab8-427b-9a9b-362e26e107eb",
"provider_code": "vnpay"
}'
Responses
application/json Modified at 2025-10-08 15:40:52