Payment Acceptance
Simulate shopper actions on dispute in the sandbox environment.
POST /api/v1/simulation/pa/shopper_actions/{action}POST /api/v1/simulation/pa/payment_disputes/createPOST /api/v1/simulation/pa/payment_disputes/{id}/resolvePOST /api/v1/simulation/pa/payment_disputes/{id}/escalate
Simulate a shopper action
POST /api/v1/simulation/pa/shopper_actions/{action}
You can use this endpoint to simulate the shopper actions after obtaining a redirect URL for a PaymentIntent or PaymentConsent. Upon successful simulation of a shopper action on the given URL, a response with HTTP status 200 OK and empty body will be returned. This endpoint is only available in the sandbox environment.
Action to simulate on a given redirect URL. Supported values are:
PaymentIntent: pay and reject.
PaymentConsent: verify.
The url with which shoppers actions will be simulated after redirection. Usually obtained from the response of Confirm a PaymentIntent and Verify a PaymentConsent.
| Error status | Description |
|---|---|
| 400 | Bad Request. Possible error codes: |
| 500 | Server Error. Possible error codes: |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/simulation/pa/shopper_actions/action' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "url": "https://api-demo.airwallex.com/pa/sandbox/sg/mck_hkdmt2qn2gk5b13d15o">}'
Create a PaymentDispute
POST /api/v1/simulation/pa/payment_disputes/create
By creating a dispute, we raise a dispute for the merchant to respond.
The amount of dispute in transaction currency. The original payment amount is used by default.
The text description of why the dispute is raised.
The documents explain why the dispute is raised. The list of File unique identifiers submitted via File Service.
The due date of dispute.
The unique identifier of PaymentIntent to raise a dispute against
The reason code for the dispute. Must be a valid reason code for the given processor.
The stage of dispute
Further details on why the client is accepting the PaymentDispute event.
The time when the user accepted the PaymentDispute.
User unique identifier of person/system actioned on case.
The accept description.
The accept reason. One of
AGREEMENT_REACHED_WITH_CUSTOMERCUSTOMER_RELATIONSHIP_MAINTENANCELOW_VALUE_TRANSACTIONVALID_CUSTOMER_DISPUTENO_ACTION_TAKEN_BY_MERCHANTRDR_AUTO_ACCEPTEDCOLLABORATION_ACCEPTED_MANUALCOLLABORATION_AUTO_ACCEPTEDCOLLABORATION_AUTO_ACCEPTED_BY_EXPIRYOTHERS
The Refund requested to be created.
The refund amount when accepting RFI. If not specified, it will be same as the remaining amount that has been captured but not yet refunded. Please refer to supported currencies for supported minor units.
The refund reason when accepting RFI. OTHERS is used by default. One of REQUESTED_BY_CUSTOMER, DUPLICATE, FRAUDULENT, ABANDONED, and OTHERS
The stage when dispute is accepted.
The acquirer reference number of original payment.
PaymentDispute amount.
The card brand of original payment, applicable when payment_method_type is CARD. Possible values: visa, mastercard, maestro, union pay, american express, jcb, diners club international and discover.
The challenge data submitted at each stage.
The time when the user challenges PaymentDispute.
User unique identifier of person/system challenges PaymentDispute.
Customer information.
Customer billing address.
Customer device unique identifier.
Customer email.
Customer ip.
Customer name.
Customer phone number.
The delivery information.
The shipping address. Applicable at stage RFI.
The date when services or goods are delivered.
The amount of shipping fee. Applicable at stage RFI.
The currency of shipping fee. Applicable at stage RFI.
The recipient's name. Applicable at stage RFI.
The recipient's phone number. Applicable at stage RFI.
The shipping date (the expected delivery date for RFI).
The company name managing this delivery, such as asendia-usa, 4px, and so on.
The shipping method, such as Priority Mail, Flat rate, and so on. Applicable at stage RFI.
The shipping status, such as SHIPPED, DELIVERED, and so on. Applicable at stage RFI.
The shipping tracking number.
The order information. Applicable when the stage is RFI.
Time at which this order was created.
The order unique identifier.
The invoice number of order.
The products of order.
The product currency. Please refer to supported currencies .
The product name.
The product quantity.
The product unit price.
The total amount of order.
The currency of total amount.
The description of product.
The type of Product.
The reason why the merchant challenges the dispute. Possible values:
- CUSTOMER_WITHDRAWN: The customer withdrew the dispute
- CUSTOMER_REFUNDED: The customer has already been refunded
- PRODUCT_RECEIVED: The customer has already received / will receive the product or service
- NOT_ENTITLED: The customer is not entitled to refund
- AUTHENTIC_PRODUCT: The product is not damaged, defective or counterfeit
- OTHER_REASONS: Other reasons for challenging
Explanation of why refund is refused.
Merchant information.
Seller name.
Store name.
Store physical address.
Store URL.
The stage when evidence is submitted.
The file unique identifiers of support documents.
The file IDs of customer communication. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of customer signature. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
List of documents.
Additional file descriptions or explanations.
File unique identifiers of the documents.
Type of the documents. Possible values: PRIMARY, ORDER, CUSTOMER, OTHER.
- PRIMARY: The primary evidence depends on the challenge reason.
- ORDER: Order related evidence.
- CUSTOMER: Customer related evidence.
- OTHER: Other supporting evidence.
The file IDs of duplicate payment evidence. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file unique identifiers of the files generated by Airwallex automatically based on text evidence or refund information.
The list of file IDs of other documents.
Deprecated. Use documents instead.
The file IDs of proof of delivery. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the receipt. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the refund policy. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
Time at which this PaymentDispute was created.
PaymentDispute currency.
The customer unique identifier of original payment.
The customer name of original payment.
PaymentDispute due date.
PaymentDispute unique identifier.
The issuer’s comment on PaymentDispute.
The issuer’s documents on PaymentDispute.
The order unique identifier of original payment.
PaymentDispute mode. Possible values: ALLOCATION, COLLABORATION, applicable when the stage is CHARGEBACK, PRE_ARBITRATION and ARBITRATION.
PaymentAttempt unique identifier.
PaymentIntent unique identifier.
The payment method type of original payment.
PaymentDispute reason.
PaymentDispute reason description.
PaymentDispute reason code.
PaymentDispute reason type. Possible values: CREDIT_NOT_PROCESSED, FRAUDULENT, DUPLICATE_CHARGE, PRODUCT_NOT_RECEIVED, PRODUCT_UNACCEPTABLE, UNRECOGNIZED_CHARGE, CANCELLED_PRODUCT, MISREPRESENTATION, COUNTERFEIT_PRODUCT, PROCESSING_ERRORS, AUTHORIZATION, NOT_RECOGNIZED, BANK_REJECTION, FUND_REVERSAL, CONSUMER_DISPUTE, POINT_OF_INTERACTION_ERROR and UNKNOWN.
The Refunds of original payment.
The acquirer reference number of Refund.
Refund unique identifier.
PaymentDispute stage.
PaymentDispute status. Possible values:
- REQUIRES_RESPONSE: In this status, you can decide whether to accept or challenge the PaymentDispute.
- Applicable when receive notification from card schemes that PaymentDispute has entered
RFI,PRE_CHARGEBACK,CHARGEBACK, orPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has entered
- CHALLENGED: In this status, we have informed the issuing bank that you would like to challenge the PaymentDispute.
- Applicable when you challenge the PaymentDispute. At
PRE_CHARGEBACKstage, the issuing bank will escalate to the chargeback stage in the following days. AtRFI,CHARGEBACK, andPRE_ARBITRATIONstage, the issuing bank will review your submitted evidence and decide whether to escalate the PaymentDispute or not.
- Applicable when you challenge the PaymentDispute. At
- ACCEPTED: In this status the PaymentDispute has been accepted and the payment will be refunded to the shopper.
- Applicable when you accept the PaymentDispute at
RFI,PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when you accept the PaymentDispute at
- REVERSED: In this status, the PaymentDispute has been reversed by the issuing bank. No further action is required.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
- WON: In this status, the issuing bank has accepted the response provided, or card schemes have ruled the PaymentDispute decision in your favor. No further action is required.
- Applicable at
CHARGEBACK,PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- LOST: In this status, the issuing bank has not accepted the evidence provided by you, or card schemes have ruled the PaymentDispute decision in Issuer’s favor. No further action is required.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- PENDING_CLOSURE: In this status, the issuing bank has escalated the PaymentDispute to
PRE_ARBITRATIONstage and Airwallex is reviewing the PaymentDispute. Airwallex will decide whether to accept the PaymentDispute or respond to it on your behalf and may reach out to you for more information.- Applicable at
PRE_ARBITRATIONstage.
- Applicable at
- EXPIRED: In this status, the
RFIevent has expired as you have not responded to the request within 15 days.- Applicable at
RFIstage.
- Applicable at
- PENDING_DECISION: In this status, we have responded to the issuing bank with evidence provided by you. The issuing bank will review your submitted evidence and decide whether to accept the PaymentDispute or not.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
The transaction type of the original transaction. Possible values: PAYMENT, REFUND.
Last time at which this PaymentDispute was updated or operated on.
| Error status | Description |
|---|---|
| 400 | invalid_argument |
| 401 | credentials_invalid |
| 500 | service_unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/simulation/pa/payment_disputes/create' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "amount": 100,> "comment": "<string>",> "documents": [> "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ"> ],> "due_at": "2025-05-20T13:14:00+0000",> "payment_intent_id": "int_hkpdskz7vg1xc7uscdj",> "reason_code": "<string>",> "stage": "RFI">}'
1{2 "accept_details": [3 {4 "accepted_at": "2023-09-18T03:11:00+0000",5 "accepted_by": "[email protected]",6 "description": "ACCEPT",7 "reason": "ee939540-3203-4a2c-9172-89a566485dd9",8 "refund": {9 "amount": 10,10 "reason": "REQUESTED_BY_CUSTOMER"11 }12 }13 ],14 "acquirer_reference_number": "789456",15 "amount": 100,16 "card_brand": "visa",17 "challenge_details": [18 {19 "challenged_at": "2023-09-18T03:11:00+0000",20 "challenged_by": "[email protected]",21 "customer_info": {22 "billing_address": "Billing address",23 "device_id": "00000000-000000000000000",24 "email": "[email protected]",25 "ip": "212.121.222.123",26 "name": "John Deo",27 "phone_number": "13800000000"28 },29 "delivery_info": {30 "address": "Shipping address",31 "delivered_at": "2023-09-18T03:11:00+0000",32 "fee_amount": 10,33 "fee_currency": "USD",34 "name": "Joe Doe",35 "phone_number": "13800000000",36 "shipped_at": "2023-09-18T03:11:00+0000",37 "shipping_company": "Shipping company",38 "shipping_method": "Shipping method",39 "status": "SHIPPED",40 "tracking_number": "123456"41 },42 "order_info": {43 "created_at": "2023-09-18T03:11:00+0000",44 "id": "123456",45 "invoice_number": "456123",46 "products": [47 {48 "currency": "USD",49 "name": "product",50 "quantity": 2,51 "unit_price": 10052 }53 ],54 "total_amount": 200,55 "total_currency": "USD"56 },57 "product_description": "product description",58 "product_type": "PHYSICAL_GOODS",59 "reason": "CUSTOMER_WITHDRAWN",60 "refund_refusal_reason": "reason",61 "seller_info": {62 "name": "seller",63 "store_name": "store",64 "store_physical_address": "store address",65 "store_url": "https://www.store-url.com"66 },67 "stage": "CHARGEBACK",68 "supporting_documents": {69 "customer_communication_documents": [70 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="71 ],72 "customer_signature_documents": [73 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="74 ],75 "documents": [76 {77 "description": "document descriptions",78 "file_ids": [79 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="80 ],81 "type": "PRIMARY"82 }83 ],84 "duplicate_charge_defense_documents": [85 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="86 ],87 "generated_files": [88 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="89 ],90 "other_documents": [91 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="92 ],93 "proof_of_delivery_documents": [94 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="95 ],96 "receipt_documents": [97 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="98 ],99 "refund_policy_documents": [100 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="101 ]102 }103 }104 ],105 "created_at": "2023-09-18T03:11:00+0000",106 "currency": "USD",107 "customer_id": "cus_ps8e0ZgQzd2QnCxVpzJrHD6KOVu",108 "customer_name": "John Doe",109 "due_at": "2023-09-18T03:11:00+0000",110 "id": "dst_nlstrf5jxgp32pfqbtq",111 "issuer_comment": "comment",112 "issuer_documents": [113 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="114 ],115 "merchant_order_id": "123456",116 "mode": "COLLABORATION",117 "payment_attempt_id": "att_nlstskcx5gipkzd6kse_dwsja0_decrp",118 "payment_intent_id": "int_nlstbs6rlgipjdwsja0_decrp",119 "payment_method_type": "VISA",120 "reason": {121 "description": "<string>",122 "original_code": "<string>",123 "type": "PRODUCT_NOT_RECEIVED"124 },125 "refunds": [126 {127 "acquirer_reference_number": "02709821210000001031868",128 "id": "rfd_ps8e0ZgQzd2QnCxVpzJrHD6KOVu"129 }130 ],131 "stage": "CHARGEBACK",132 "status": "RECEIVED",133 "transaction_type": "PAYMENT",134 "updated_at": "2023-09-18T03:11:00+0000"135}
Resolve a PaymentDispute
POST /api/v1/simulation/pa/payment_disputes/{id}/resolve
By resolving a dispute, the dispute transitions to the final status.
- When
in_favor_of=MERCHANT, the dispute becomesWONorREVERSED - When
in_favor_of=CUSTOMER, the dispute becomesLOST
PaymentDispute unique identifier
The resolved amount. The full disputed amount is used by default.
The text explains why the dispute is resolved.
The party who is in favor of when resolving the dispute. One of MERCHANT, CUSTOMER.
Further details on why the client is accepting the PaymentDispute event.
The time when the user accepted the PaymentDispute.
User unique identifier of person/system actioned on case.
The accept description.
The accept reason. One of
AGREEMENT_REACHED_WITH_CUSTOMERCUSTOMER_RELATIONSHIP_MAINTENANCELOW_VALUE_TRANSACTIONVALID_CUSTOMER_DISPUTENO_ACTION_TAKEN_BY_MERCHANTRDR_AUTO_ACCEPTEDCOLLABORATION_ACCEPTED_MANUALCOLLABORATION_AUTO_ACCEPTEDCOLLABORATION_AUTO_ACCEPTED_BY_EXPIRYOTHERS
The Refund requested to be created.
The refund amount when accepting RFI. If not specified, it will be same as the remaining amount that has been captured but not yet refunded. Please refer to supported currencies for supported minor units.
The refund reason when accepting RFI. OTHERS is used by default. One of REQUESTED_BY_CUSTOMER, DUPLICATE, FRAUDULENT, ABANDONED, and OTHERS
The stage when dispute is accepted.
The acquirer reference number of original payment.
PaymentDispute amount.
The card brand of original payment, applicable when payment_method_type is CARD. Possible values: visa, mastercard, maestro, union pay, american express, jcb, diners club international and discover.
The challenge data submitted at each stage.
The time when the user challenges PaymentDispute.
User unique identifier of person/system challenges PaymentDispute.
Customer information.
Customer billing address.
Customer device unique identifier.
Customer email.
Customer ip.
Customer name.
Customer phone number.
The delivery information.
The shipping address. Applicable at stage RFI.
The date when services or goods are delivered.
The amount of shipping fee. Applicable at stage RFI.
The currency of shipping fee. Applicable at stage RFI.
The recipient's name. Applicable at stage RFI.
The recipient's phone number. Applicable at stage RFI.
The shipping date (the expected delivery date for RFI).
The company name managing this delivery, such as asendia-usa, 4px, and so on.
The shipping method, such as Priority Mail, Flat rate, and so on. Applicable at stage RFI.
The shipping status, such as SHIPPED, DELIVERED, and so on. Applicable at stage RFI.
The shipping tracking number.
The order information. Applicable when the stage is RFI.
Time at which this order was created.
The order unique identifier.
The invoice number of order.
The products of order.
The product currency. Please refer to supported currencies .
The product name.
The product quantity.
The product unit price.
The total amount of order.
The currency of total amount.
The description of product.
The type of Product.
The reason why the merchant challenges the dispute. Possible values:
- CUSTOMER_WITHDRAWN: The customer withdrew the dispute
- CUSTOMER_REFUNDED: The customer has already been refunded
- PRODUCT_RECEIVED: The customer has already received / will receive the product or service
- NOT_ENTITLED: The customer is not entitled to refund
- AUTHENTIC_PRODUCT: The product is not damaged, defective or counterfeit
- OTHER_REASONS: Other reasons for challenging
Explanation of why refund is refused.
Merchant information.
Seller name.
Store name.
Store physical address.
Store URL.
The stage when evidence is submitted.
The file unique identifiers of support documents.
The file IDs of customer communication. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of customer signature. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
List of documents.
Additional file descriptions or explanations.
File unique identifiers of the documents.
Type of the documents. Possible values: PRIMARY, ORDER, CUSTOMER, OTHER.
- PRIMARY: The primary evidence depends on the challenge reason.
- ORDER: Order related evidence.
- CUSTOMER: Customer related evidence.
- OTHER: Other supporting evidence.
The file IDs of duplicate payment evidence. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file unique identifiers of the files generated by Airwallex automatically based on text evidence or refund information.
The list of file IDs of other documents.
Deprecated. Use documents instead.
The file IDs of proof of delivery. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the receipt. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the refund policy. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
Time at which this PaymentDispute was created.
PaymentDispute currency.
The customer unique identifier of original payment.
The customer name of original payment.
PaymentDispute due date.
PaymentDispute unique identifier.
The issuer’s comment on PaymentDispute.
The issuer’s documents on PaymentDispute.
The order unique identifier of original payment.
PaymentDispute mode. Possible values: ALLOCATION, COLLABORATION, applicable when the stage is CHARGEBACK, PRE_ARBITRATION and ARBITRATION.
PaymentAttempt unique identifier.
PaymentIntent unique identifier.
The payment method type of original payment.
PaymentDispute reason.
PaymentDispute reason description.
PaymentDispute reason code.
PaymentDispute reason type. Possible values: CREDIT_NOT_PROCESSED, FRAUDULENT, DUPLICATE_CHARGE, PRODUCT_NOT_RECEIVED, PRODUCT_UNACCEPTABLE, UNRECOGNIZED_CHARGE, CANCELLED_PRODUCT, MISREPRESENTATION, COUNTERFEIT_PRODUCT, PROCESSING_ERRORS, AUTHORIZATION, NOT_RECOGNIZED, BANK_REJECTION, FUND_REVERSAL, CONSUMER_DISPUTE, POINT_OF_INTERACTION_ERROR and UNKNOWN.
The Refunds of original payment.
The acquirer reference number of Refund.
Refund unique identifier.
PaymentDispute stage.
PaymentDispute status. Possible values:
- REQUIRES_RESPONSE: In this status, you can decide whether to accept or challenge the PaymentDispute.
- Applicable when receive notification from card schemes that PaymentDispute has entered
RFI,PRE_CHARGEBACK,CHARGEBACK, orPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has entered
- CHALLENGED: In this status, we have informed the issuing bank that you would like to challenge the PaymentDispute.
- Applicable when you challenge the PaymentDispute. At
PRE_CHARGEBACKstage, the issuing bank will escalate to the chargeback stage in the following days. AtRFI,CHARGEBACK, andPRE_ARBITRATIONstage, the issuing bank will review your submitted evidence and decide whether to escalate the PaymentDispute or not.
- Applicable when you challenge the PaymentDispute. At
- ACCEPTED: In this status the PaymentDispute has been accepted and the payment will be refunded to the shopper.
- Applicable when you accept the PaymentDispute at
RFI,PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when you accept the PaymentDispute at
- REVERSED: In this status, the PaymentDispute has been reversed by the issuing bank. No further action is required.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
- WON: In this status, the issuing bank has accepted the response provided, or card schemes have ruled the PaymentDispute decision in your favor. No further action is required.
- Applicable at
CHARGEBACK,PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- LOST: In this status, the issuing bank has not accepted the evidence provided by you, or card schemes have ruled the PaymentDispute decision in Issuer’s favor. No further action is required.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- PENDING_CLOSURE: In this status, the issuing bank has escalated the PaymentDispute to
PRE_ARBITRATIONstage and Airwallex is reviewing the PaymentDispute. Airwallex will decide whether to accept the PaymentDispute or respond to it on your behalf and may reach out to you for more information.- Applicable at
PRE_ARBITRATIONstage.
- Applicable at
- EXPIRED: In this status, the
RFIevent has expired as you have not responded to the request within 15 days.- Applicable at
RFIstage.
- Applicable at
- PENDING_DECISION: In this status, we have responded to the issuing bank with evidence provided by you. The issuing bank will review your submitted evidence and decide whether to accept the PaymentDispute or not.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
The transaction type of the original transaction. Possible values: PAYMENT, REFUND.
Last time at which this PaymentDispute was updated or operated on.
| Error status | Description |
|---|---|
| 400 | invalid_argument |
| 401 | credentials_invalid |
| 500 | service_unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/simulation/pa/payment_disputes/payment_acceptance_id/resolve' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "amount": 100,> "comment": "<string>",> "in_favor_of": "MERCHANT">}'
1{2 "accept_details": [3 {4 "accepted_at": "2023-09-18T03:11:00+0000",5 "accepted_by": "[email protected]",6 "description": "ACCEPT",7 "reason": "ee939540-3203-4a2c-9172-89a566485dd9",8 "refund": {9 "amount": 10,10 "reason": "REQUESTED_BY_CUSTOMER"11 }12 }13 ],14 "acquirer_reference_number": "789456",15 "amount": 100,16 "card_brand": "visa",17 "challenge_details": [18 {19 "challenged_at": "2023-09-18T03:11:00+0000",20 "challenged_by": "[email protected]",21 "customer_info": {22 "billing_address": "Billing address",23 "device_id": "00000000-000000000000000",24 "email": "[email protected]",25 "ip": "212.121.222.123",26 "name": "John Deo",27 "phone_number": "13800000000"28 },29 "delivery_info": {30 "address": "Shipping address",31 "delivered_at": "2023-09-18T03:11:00+0000",32 "fee_amount": 10,33 "fee_currency": "USD",34 "name": "Joe Doe",35 "phone_number": "13800000000",36 "shipped_at": "2023-09-18T03:11:00+0000",37 "shipping_company": "Shipping company",38 "shipping_method": "Shipping method",39 "status": "SHIPPED",40 "tracking_number": "123456"41 },42 "order_info": {43 "created_at": "2023-09-18T03:11:00+0000",44 "id": "123456",45 "invoice_number": "456123",46 "products": [47 {48 "currency": "USD",49 "name": "product",50 "quantity": 2,51 "unit_price": 10052 }53 ],54 "total_amount": 200,55 "total_currency": "USD"56 },57 "product_description": "product description",58 "product_type": "PHYSICAL_GOODS",59 "reason": "CUSTOMER_WITHDRAWN",60 "refund_refusal_reason": "reason",61 "seller_info": {62 "name": "seller",63 "store_name": "store",64 "store_physical_address": "store address",65 "store_url": "https://www.store-url.com"66 },67 "stage": "CHARGEBACK",68 "supporting_documents": {69 "customer_communication_documents": [70 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="71 ],72 "customer_signature_documents": [73 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="74 ],75 "documents": [76 {77 "description": "document descriptions",78 "file_ids": [79 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="80 ],81 "type": "PRIMARY"82 }83 ],84 "duplicate_charge_defense_documents": [85 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="86 ],87 "generated_files": [88 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="89 ],90 "other_documents": [91 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="92 ],93 "proof_of_delivery_documents": [94 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="95 ],96 "receipt_documents": [97 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="98 ],99 "refund_policy_documents": [100 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="101 ]102 }103 }104 ],105 "created_at": "2023-09-18T03:11:00+0000",106 "currency": "USD",107 "customer_id": "cus_ps8e0ZgQzd2QnCxVpzJrHD6KOVu",108 "customer_name": "John Doe",109 "due_at": "2023-09-18T03:11:00+0000",110 "id": "dst_nlstrf5jxgp32pfqbtq",111 "issuer_comment": "comment",112 "issuer_documents": [113 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="114 ],115 "merchant_order_id": "123456",116 "mode": "COLLABORATION",117 "payment_attempt_id": "att_nlstskcx5gipkzd6kse_dwsja0_decrp",118 "payment_intent_id": "int_nlstbs6rlgipjdwsja0_decrp",119 "payment_method_type": "VISA",120 "reason": {121 "description": "<string>",122 "original_code": "<string>",123 "type": "PRODUCT_NOT_RECEIVED"124 },125 "refunds": [126 {127 "acquirer_reference_number": "02709821210000001031868",128 "id": "rfd_ps8e0ZgQzd2QnCxVpzJrHD6KOVu"129 }130 ],131 "stage": "CHARGEBACK",132 "status": "RECEIVED",133 "transaction_type": "PAYMENT",134 "updated_at": "2023-09-18T03:11:00+0000"135}
Escalate a PaymentDispute
POST /api/v1/simulation/pa/payment_disputes/{id}/escalate
By escalating a dispute, the evidence provided by the merchant is declined, and the dispute is escalated to the next stage.
PaymentDispute unique identifier
The adjusted amount of dispute.
The text description of why the dispute is escalated.
The documents explain why the dispute is escalated. The list of File unique identifiers submitted via File Service.
The new due date of the dispute.
Further details on why the client is accepting the PaymentDispute event.
The time when the user accepted the PaymentDispute.
User unique identifier of person/system actioned on case.
The accept description.
The accept reason. One of
AGREEMENT_REACHED_WITH_CUSTOMERCUSTOMER_RELATIONSHIP_MAINTENANCELOW_VALUE_TRANSACTIONVALID_CUSTOMER_DISPUTENO_ACTION_TAKEN_BY_MERCHANTRDR_AUTO_ACCEPTEDCOLLABORATION_ACCEPTED_MANUALCOLLABORATION_AUTO_ACCEPTEDCOLLABORATION_AUTO_ACCEPTED_BY_EXPIRYOTHERS
The Refund requested to be created.
The refund amount when accepting RFI. If not specified, it will be same as the remaining amount that has been captured but not yet refunded. Please refer to supported currencies for supported minor units.
The refund reason when accepting RFI. OTHERS is used by default. One of REQUESTED_BY_CUSTOMER, DUPLICATE, FRAUDULENT, ABANDONED, and OTHERS
The stage when dispute is accepted.
The acquirer reference number of original payment.
PaymentDispute amount.
The card brand of original payment, applicable when payment_method_type is CARD. Possible values: visa, mastercard, maestro, union pay, american express, jcb, diners club international and discover.
The challenge data submitted at each stage.
The time when the user challenges PaymentDispute.
User unique identifier of person/system challenges PaymentDispute.
Customer information.
Customer billing address.
Customer device unique identifier.
Customer email.
Customer ip.
Customer name.
Customer phone number.
The delivery information.
The shipping address. Applicable at stage RFI.
The date when services or goods are delivered.
The amount of shipping fee. Applicable at stage RFI.
The currency of shipping fee. Applicable at stage RFI.
The recipient's name. Applicable at stage RFI.
The recipient's phone number. Applicable at stage RFI.
The shipping date (the expected delivery date for RFI).
The company name managing this delivery, such as asendia-usa, 4px, and so on.
The shipping method, such as Priority Mail, Flat rate, and so on. Applicable at stage RFI.
The shipping status, such as SHIPPED, DELIVERED, and so on. Applicable at stage RFI.
The shipping tracking number.
The order information. Applicable when the stage is RFI.
Time at which this order was created.
The order unique identifier.
The invoice number of order.
The products of order.
The product currency. Please refer to supported currencies .
The product name.
The product quantity.
The product unit price.
The total amount of order.
The currency of total amount.
The description of product.
The type of Product.
The reason why the merchant challenges the dispute. Possible values:
- CUSTOMER_WITHDRAWN: The customer withdrew the dispute
- CUSTOMER_REFUNDED: The customer has already been refunded
- PRODUCT_RECEIVED: The customer has already received / will receive the product or service
- NOT_ENTITLED: The customer is not entitled to refund
- AUTHENTIC_PRODUCT: The product is not damaged, defective or counterfeit
- OTHER_REASONS: Other reasons for challenging
Explanation of why refund is refused.
Merchant information.
Seller name.
Store name.
Store physical address.
Store URL.
The stage when evidence is submitted.
The file unique identifiers of support documents.
The file IDs of customer communication. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of customer signature. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
List of documents.
Additional file descriptions or explanations.
File unique identifiers of the documents.
Type of the documents. Possible values: PRIMARY, ORDER, CUSTOMER, OTHER.
- PRIMARY: The primary evidence depends on the challenge reason.
- ORDER: Order related evidence.
- CUSTOMER: Customer related evidence.
- OTHER: Other supporting evidence.
The file IDs of duplicate payment evidence. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file unique identifiers of the files generated by Airwallex automatically based on text evidence or refund information.
The list of file IDs of other documents.
Deprecated. Use documents instead.
The file IDs of proof of delivery. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the receipt. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
The file IDs of the refund policy. Applicable when stage is CHARGEBACK.
Deprecated. Use documents instead.
Time at which this PaymentDispute was created.
PaymentDispute currency.
The customer unique identifier of original payment.
The customer name of original payment.
PaymentDispute due date.
PaymentDispute unique identifier.
The issuer’s comment on PaymentDispute.
The issuer’s documents on PaymentDispute.
The order unique identifier of original payment.
PaymentDispute mode. Possible values: ALLOCATION, COLLABORATION, applicable when the stage is CHARGEBACK, PRE_ARBITRATION and ARBITRATION.
PaymentAttempt unique identifier.
PaymentIntent unique identifier.
The payment method type of original payment.
PaymentDispute reason.
PaymentDispute reason description.
PaymentDispute reason code.
PaymentDispute reason type. Possible values: CREDIT_NOT_PROCESSED, FRAUDULENT, DUPLICATE_CHARGE, PRODUCT_NOT_RECEIVED, PRODUCT_UNACCEPTABLE, UNRECOGNIZED_CHARGE, CANCELLED_PRODUCT, MISREPRESENTATION, COUNTERFEIT_PRODUCT, PROCESSING_ERRORS, AUTHORIZATION, NOT_RECOGNIZED, BANK_REJECTION, FUND_REVERSAL, CONSUMER_DISPUTE, POINT_OF_INTERACTION_ERROR and UNKNOWN.
The Refunds of original payment.
The acquirer reference number of Refund.
Refund unique identifier.
PaymentDispute stage.
PaymentDispute status. Possible values:
- REQUIRES_RESPONSE: In this status, you can decide whether to accept or challenge the PaymentDispute.
- Applicable when receive notification from card schemes that PaymentDispute has entered
RFI,PRE_CHARGEBACK,CHARGEBACK, orPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has entered
- CHALLENGED: In this status, we have informed the issuing bank that you would like to challenge the PaymentDispute.
- Applicable when you challenge the PaymentDispute. At
PRE_CHARGEBACKstage, the issuing bank will escalate to the chargeback stage in the following days. AtRFI,CHARGEBACK, andPRE_ARBITRATIONstage, the issuing bank will review your submitted evidence and decide whether to escalate the PaymentDispute or not.
- Applicable when you challenge the PaymentDispute. At
- ACCEPTED: In this status the PaymentDispute has been accepted and the payment will be refunded to the shopper.
- Applicable when you accept the PaymentDispute at
RFI,PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when you accept the PaymentDispute at
- REVERSED: In this status, the PaymentDispute has been reversed by the issuing bank. No further action is required.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
PRE_CHARGEBACK,CHARGEBACK, andPRE_ARBITRATIONstage.
- Applicable when receive notification from card schemes that PaymentDispute has been reversed at
- WON: In this status, the issuing bank has accepted the response provided, or card schemes have ruled the PaymentDispute decision in your favor. No further action is required.
- Applicable at
CHARGEBACK,PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- LOST: In this status, the issuing bank has not accepted the evidence provided by you, or card schemes have ruled the PaymentDispute decision in Issuer’s favor. No further action is required.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
- PENDING_CLOSURE: In this status, the issuing bank has escalated the PaymentDispute to
PRE_ARBITRATIONstage and Airwallex is reviewing the PaymentDispute. Airwallex will decide whether to accept the PaymentDispute or respond to it on your behalf and may reach out to you for more information.- Applicable at
PRE_ARBITRATIONstage.
- Applicable at
- EXPIRED: In this status, the
RFIevent has expired as you have not responded to the request within 15 days.- Applicable at
RFIstage.
- Applicable at
- PENDING_DECISION: In this status, we have responded to the issuing bank with evidence provided by you. The issuing bank will review your submitted evidence and decide whether to accept the PaymentDispute or not.
- Applicable at
PRE_ARBITRATIONandARBITRATIONstage.
- Applicable at
The transaction type of the original transaction. Possible values: PAYMENT, REFUND.
Last time at which this PaymentDispute was updated or operated on.
| Error status | Description |
|---|---|
| 400 | invalid_argument |
| 401 | credentials_invalid |
| 500 | service_unavailable |
$curl --request POST \> --url 'https://api-demo.airwallex.com/api/v1/simulation/pa/payment_disputes/payment_acceptance_id/escalate' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "amount": 100,> "comment": "<string>",> "documents": [> "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ"> ],> "due_at": "2025-08-14T09:14:00+0000">}'
1{2 "accept_details": [3 {4 "accepted_at": "2023-09-18T03:11:00+0000",5 "accepted_by": "[email protected]",6 "description": "ACCEPT",7 "reason": "ee939540-3203-4a2c-9172-89a566485dd9",8 "refund": {9 "amount": 10,10 "reason": "REQUESTED_BY_CUSTOMER"11 }12 }13 ],14 "acquirer_reference_number": "789456",15 "amount": 100,16 "card_brand": "visa",17 "challenge_details": [18 {19 "challenged_at": "2023-09-18T03:11:00+0000",20 "challenged_by": "[email protected]",21 "customer_info": {22 "billing_address": "Billing address",23 "device_id": "00000000-000000000000000",24 "email": "[email protected]",25 "ip": "212.121.222.123",26 "name": "John Deo",27 "phone_number": "13800000000"28 },29 "delivery_info": {30 "address": "Shipping address",31 "delivered_at": "2023-09-18T03:11:00+0000",32 "fee_amount": 10,33 "fee_currency": "USD",34 "name": "Joe Doe",35 "phone_number": "13800000000",36 "shipped_at": "2023-09-18T03:11:00+0000",37 "shipping_company": "Shipping company",38 "shipping_method": "Shipping method",39 "status": "SHIPPED",40 "tracking_number": "123456"41 },42 "order_info": {43 "created_at": "2023-09-18T03:11:00+0000",44 "id": "123456",45 "invoice_number": "456123",46 "products": [47 {48 "currency": "USD",49 "name": "product",50 "quantity": 2,51 "unit_price": 10052 }53 ],54 "total_amount": 200,55 "total_currency": "USD"56 },57 "product_description": "product description",58 "product_type": "PHYSICAL_GOODS",59 "reason": "CUSTOMER_WITHDRAWN",60 "refund_refusal_reason": "reason",61 "seller_info": {62 "name": "seller",63 "store_name": "store",64 "store_physical_address": "store address",65 "store_url": "https://www.store-url.com"66 },67 "stage": "CHARGEBACK",68 "supporting_documents": {69 "customer_communication_documents": [70 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="71 ],72 "customer_signature_documents": [73 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="74 ],75 "documents": [76 {77 "description": "document descriptions",78 "file_ids": [79 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="80 ],81 "type": "PRIMARY"82 }83 ],84 "duplicate_charge_defense_documents": [85 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="86 ],87 "generated_files": [88 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="89 ],90 "other_documents": [91 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="92 ],93 "proof_of_delivery_documents": [94 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="95 ],96 "receipt_documents": [97 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="98 ],99 "refund_policy_documents": [100 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="101 ]102 }103 }104 ],105 "created_at": "2023-09-18T03:11:00+0000",106 "currency": "USD",107 "customer_id": "cus_ps8e0ZgQzd2QnCxVpzJrHD6KOVu",108 "customer_name": "John Doe",109 "due_at": "2023-09-18T03:11:00+0000",110 "id": "dst_nlstrf5jxgp32pfqbtq",111 "issuer_comment": "comment",112 "issuer_documents": [113 "YmVkODdkNGMtNWFiZC00MzM0LdGVzdC5wZGZfMTYxNTI2MDIxOQ=="114 ],115 "merchant_order_id": "123456",116 "mode": "COLLABORATION",117 "payment_attempt_id": "att_nlstskcx5gipkzd6kse_dwsja0_decrp",118 "payment_intent_id": "int_nlstbs6rlgipjdwsja0_decrp",119 "payment_method_type": "VISA",120 "reason": {121 "description": "<string>",122 "original_code": "<string>",123 "type": "PRODUCT_NOT_RECEIVED"124 },125 "refunds": [126 {127 "acquirer_reference_number": "02709821210000001031868",128 "id": "rfd_ps8e0ZgQzd2QnCxVpzJrHD6KOVu"129 }130 ],131 "stage": "CHARGEBACK",132 "status": "RECEIVED",133 "transaction_type": "PAYMENT",134 "updated_at": "2023-09-18T03:11:00+0000"135}