- Tổng quan
- Thẻ PosApp
- Thông tin khác
- Webhook
- Sản phẩm
- Khuyến mãi
- Đồng giá
Nạp tiền vào thẻ
Test Env
Test Env
POST
api/public/posapp-cards/top-up
card_id
.Request
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
partner_code
string
required
request_id
string
required
Đối tác sử dụng requestId để xử lý idempotency
<= 50 characters
card_id
string
required
amount
integer
required
>= 1<= 50000000
order_id
null
optional
order_info
string | null
optional
lang
string
required
Default:
vi
Examples:
vien
extra_data
string | null
optional
signature
string
required
amount=10000&card_id=123456
Example
{
"partner_code": "PAC1234567",
"request_id": "d3d9c551-ab6a-4efd-bba5-c9b99abb6812",
"card_id": "NRP0CPBJWX",
"order_id": "13475873434",
"amount": 10000,
"order_info": "Nap the cho NV1 voi don hang NT001",
"lang": "vi"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://retail-api.posapp.vn/api/public/posapp-cards/top-up' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"partner_code": "PAC1234567",
"request_id": "d3d9c551-ab6a-4efd-bba5-c9b99abb6812",
"card_id": "NRP0CPBJWX",
"order_id": "13475873434",
"amount": 10000,
"order_info": "Nap the cho NV1 voi don hang NT001",
"lang": "vi"
}'
Responses
🟢200Success
application/json
Body
partner_code
string
required
request_id
string
required
Đối tác sử dụng requestId để xử lý idempotency
card_id
string
required
amount
integer
required
posapp_trans_id
string
required
order_id
string | null
optional
order_info
string | null
optional
paid_at
string
required
message
string
required
result_code
integer
required
extra_data
null
optional
lang
string
required
signature
string
required
Example
{
"partner_code": "PAC1234567",
"request_id": "d3d9c551-ab6a-4efd-bba5-c9b99abb6812",
"card_id": "NRP0CPBJWX",
"amount": 10000,
"posapp_trans_id": "9dafcf76-6f58-48b1-8fb9-9ce136d6568d",
"order_id": "13475873434",
"order_info": "Nap the cho NV1 voi don hang NT001",
"paid_at": null,
"message": "Nạp tiền thành công",
"result_code": null,
"extra_data": null,
"lang": "vi",
"signature": "cf8f62599fcb3639ed16c8223013ad4c4e94b67fde17d692797ec8e076fa7be2"
}
🟠400Bad Request
Modified at 2024-10-16 04:51:11