Airwallex logo

Refunds

Copy for LLMView as Markdown

You can refund or partial refund WeChat Pay transactions by creating a refund. Please note that the amount settled to the WeChat Pay wallet is NOT refundable due to the Chinese SAFE regulation on international revenue and expenditure declaration. We strongly recommend merchants to issue WeChat Pay funds split after all refunds have been completed.

Example request

Shell
1curl -X POST https://api-demo.airwallex.com/api/v1/pa/refunds/create \
2 -H 'Content-Type: application/json' \
3 -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \
4 -d '{
5 "payment_attempt_id": "{{PAYMENT_ATTEMPT_ID}}",
6 "reason": "request refund",
7 "amount": 0.1,
8 "request_id": "{{GUID}}"
9 }'

Example response

JSON
1{
2 "id": "rfd_sgst4689lgcv3c7rbyc_bppn22",
3 "request_id": "c557e8c1-d16a-4821-8cf4-9f865058e597",
4 "payment_intent_id": "int_sgst4689lgcv3bppn22",
5 "payment_attempt_id": "att_sgst4689lgcv3bv7iin_bppn22",
6 "amount": 0.1,
7 "currency": "CNY",
8 "reason": "request refund",
9 "status": "RECEIVED",
10 "created_at": "2022-08-23T10:06:23+0000",
11 "updated_at": "2022-08-23T10:06:23+0000"
12}
Was this page helpful?