Bill file

The bill file format remains the same in easy tax refund. The file name is in PID_YYYYMMDD_ bill.txt format.

File contents

Overall

This section gives an overview of the parameters in the file body. See the following table for details:

No.

Field

Description

1

Serial number of the payment request

MANDATORY String(64)

The unique serial number for payment request

2

partner_id

MANDATORY String(16)

The tax refund company ID agreed between the company and Alipay, not the factoring partner_id.

3

Currency

OPTIONAL String(3)

CNY 

4

total request amount

MANDATORY Number(12,2)

The unit is yuan and is accurate to the smallest unit of the currency.

Note: Total request amount = Total refund amount - Pre-auth amount + Pre-auth refund amount.

5

success transactions

MANDATORY String

The number of successful tax refund transactions

6

success amount

MANDATORY Number(12,2)

The successfully tax refund amount, which is accurate to the smallest unit of currency.

7

failed transactions

MANDATORY String

The number of failed tax refund transactions

8

failed amount

MANDATORY Number(12,2)

The amount of failed tax refund. The unit is yuan and is accurate to the smallest unit of the currency.

9

pre-auth transactions

MANDATORY String

Must be an integer that is greater than 0.

10

pre-auth amount

OPTIONAL Number(12,2)

The unit is yuan and is accurate to the smallest unit of the currency. If no value exists, then 0.00 will be filled.

11

Pre-auth refund transactions

MANDATORY String

Must be an integer that is greater than 0.

12

Pre-auth refund amount

OPTIONAL Number(12,2)

The unit is yuan and is accurate to the smallest unit of the currency. If no value exists, then 0.00 will be filled.

13

Billing date

MANDATORY String(24)

The billing date. The format is yyyy-mm-dd hh:mm:ss.

14

Due date

MANDATORY String(24)

The due date. The format is yyyy-mm-dd hh:mm:ss.

Tax refund details

This section gives an overview of the parameters in the file body. See the following table for details:

No.

Field

Description

1

out_transaction_no

MANDATORY String(64)

The unique serial number of the tax refund order in the tax refund company.

Note: in the advance refund V2.0(zhima+huabei) case, this field is out_tax_refund_no when you send to Alipay through alipay.overseas.tax.advanced.create.

2

Tax_refund_no

MANDATORY String(64)

The unique serial number of the tax refund order in Alipay.

Note: in the advance refund V2.0(zhima+huabei) case, this field is tax_refund_no when you send to Alipay through alipay.overseas.tax.advanced.create.

3

Pre-auth_transaction_no

OPTIONAL String(64)

This field is not required in a non-escrow tax refund.

Note: In the advance tax refund V2.0 (zhima and huabei) case, this field does not exist.

4

amount

MANDATORY Number(12,2)

The amount is accurate to the smallest unit of currency. The unit is yuan.

5

mobile

MANDATORY String(16)

Chinese mobile phone number with 11 figures

6

passport

OPTIONAL String(32)

The passport number of the customer

7

name

OPTIONAL String(100)

The name stated on the customer's passport

8

nationality

OPTIONAL String(32)

The nationality stated on the customer's passport

9

Status/ process result

OPTIONAL String(1)

The process result. Possible values include:

  • T: Success
  • F: Failure

10

Remarks

OPTIONAL String(128)

When the process result is F, provide the error code in this field.

Pre-auth details

This section gives an overview of the parameters in the file body. See the following table for details:

No.

Field

Description

1

Detail type

OPTIONAL String

PA_PAY for pre-auth payment and PA_REFUND for pre-auth refund.

Note: In the advanced refund V2.0 (zhima and huabei), PA_REFUND scenario does not exist. Issue a new tax refund instead of using the pre-auth refund function.

2

out_transaction_no

MANDATORY String(64)

In the advanced tax refund V2.0 (zhima and huabei) case, this field is out_request_no when you send to Alipay through alipay.overseas.tax.advanced.create.

3

Alipay_transaction_no

String(64)

MANDATORY String(64)

In the advanced tax refund V2.0 (zhima and huabei) case, this field does not exist.

4

Pre-auth transaction no

MANDATORY String(64)

In the advanced tax refund V2.0 (zhima and huabei) case, this field does not exist.

5

Tax refund no

MANDATORY String(64)

The associated tax refund order number

Note: In the advanced tax refund V2.0 (zhima and huabei) case, this field is tax_refund_no.

6

Payment refund order number

OPTIONAL String(64)

This field exists only when the type is PA_PREFUND.

7

amount

MANDATORY Number(12,2)

The amount is accurate to the smallest unit of currency. The unit is yuan.

8

Status/ process result

OPTIONAL String(1)

The process result. Possible values include:

  • T: Success
  • F: Failure

9

Remarks

OPTIONAL String(128)

Remarks

10

placeholder

OPTIONAL String

Placeholder