When it comes to transactions involving multiple sellers on a marketplace, handling refunds can sometimes be challenging. Rapydβs solution, processing refunds from one or multiple sellers becomes quick and hassle-free.
Here are some examples of a refund from multiple sellers:
- Refund in marketplace: A refund can be made on a marketplace where a purchase was made from multiple sellers on that marketplace. If the purchase includes multiple digital products like designs, annual service or tickets to different days then you can , Rapydβs solution ensures that customers receive appropriate refunds for individual items within a multi-seller transaction.
- Refund multiple products on an ecommerce website: Rapyd provides a seamless method for merchants to process partial refunds for purchases made by customers on their eCommerce websites. This feature allows merchants to issue refunds for specific products or services, even in cases where multiple sellers are involved in a single transaction.
Refund Process:
Refunds are credited back to the payment method used in the original transaction. In the case of purchases involving multiple sellers (or Rapyd Wallets), the partial refund is processed from the specific sellerβs wallet responsible for the product in question. This streamlined approach ensures accuracy and clarity in refunding customers for specific items.
Retrieve Payment
If we retrieve the payment and see that a full $30 payment was made between 4 sellers in non-proportional amounts 5, 10, 5 and 10.
Request
GET https://sandboxapi.rapyd.net/v1/payments/payment_fe55e4af171eb235a9708fe6727fc652
Response
{
"status": {
"error_code": "",
"status": "SUCCESS",
"message": "",
"response_code": "",
"operation_id": "90d74066-b27f-43c6-bf27-14e3a6be783d"
},
"data": {
"id": "payment_fe55e4af171eb235a9708fe6727fc652",
"amount": 30,
"original_amount": 30,
"is_partial": false,
"currency_code": "USD",
"country_code": "US",
"status": "CLO",
"description": "",
"merchant_reference_id": "",
"customer_token": "cus_98758746c0ba5e83bf89a925b860698e",
"payment_method": "card_228ef664d410c45531b8a890f7301d8d",
"payment_method_data": {
"id": "card_228ef664d410c45531b8a890f7301d8d",
"type": "us_debit_visa_card",
"category": "card",
"metadata": {
"merchant_defined": true
},
"image": "",
"webhook_url": "",
"supporting_documentation": "",
"next_action": "not_applicable",
"name": "John Doe",
"last4": "1111",
"acs_check": "unchecked",
"cvv_check": "unchecked",
"bin_details": {
"type": null,
"brand": null,
"level": null,
"issuer": null,
"country": null,
"bin_number": "411111"
},
"expiration_year": "23",
"expiration_month": "12",
"fingerprint_token": "ocfp_2a694038316f52122bbbb3ae926cfda9"
},
"auth_code": null,
"expiration": 1686673531,
"captured": true,
"refunded": true,
"refunded_amount": 15,
"receipt_email": "",
"redirect_url": "",
"complete_payment_url": "",
"error_payment_url": "",
"receipt_number": "",
"flow_type": "",
"address": null,
"statement_descriptor": "Test Business",
"transaction_id": "",
"created_at": 1686068731,
"metadata": {},
"failure_code": "",
"failure_message": "",
"paid": true,
"paid_at": 1686068731,
"dispute": null,
"refunds": {
"data": [
{
"id": "refund_888b6aace96c1656666849c44af6b5c7",
"amount": 15,
"currency": "USD",
"failure_reason": "",
"metadata": {
"merchant_defined": true
},
"reason": "Not needed",
"status": "Completed",
"receipt_number": 0,
"created_at": 1686068768,
"updated_at": 1686068769,
"merchant_reference_id": "CW1234567",
"payment_created_at": 1686068731,
"payment_method_type": "",
"ewallets": [
{
"ewallet": "ewallet_e284796734f7e88dac3691f69ef7d7d1",
"amount": 10
},
{
"ewallet": "ewallet_aae2950a42c497c12397ad998c60e71c",
"amount": 5
}
],
"proportional_refund": false,
"merchant_debited_amount": null,
"merchant_debited_currency": null,
"fx_rate": null,
"fixed_side": null
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/refunds?payment=payment_fe55e4af171eb235a9708fe6727fc652"
},
"order": null,
"outcome": null,
"visual_codes": {},
"textual_codes": {},
"instructions": [],
"ewallet_id": null,
"ewallets": [
{
"ewallet_id": "ewallet_aae2950a42c497c12397ad998c60e71c",
"amount": 5,
"percent": 16.67,
"refunded_amount": 5
},
{
"ewallet_id": "ewallet_e284796734f7e88dac3691f69ef7d7d1",
"amount": 10,
"percent": 33.33,
"refunded_amount": 10
},
{
"ewallet_id": "ewallet_3975c946fe7836e47b05a2b70e22d63a",
"amount": 5,
"percent": 16.67,
"refunded_amount": 0
},
{
"ewallet_id": "ewallet_622b1deb47c3391d9075fd1f5c09a3e5",
"amount": 10,
"percent": 33.33,
"refunded_amount": 0
}
],
"payment_method_options": {},
"payment_method_type": "us_debit_visa_card",
"payment_method_type_category": "card",
β¦
"initiation_type": "customer_present",
"mid": "",
"next_action": "not_applicable",
"error_code": "",
"remitter_information": {},
"save_payment_method": true
}
}
Refund from Multiple Sellers
Now we can refund any number of the product purchases from sellersβ designated Rapyd Wallets with the amount paid to them.
Request
{
"payment": "payment_fe55e4af171eb235a9708fe6727fc652",
"ewallets": [
{
"ewallet": "ewallet_aae2950a42c497c12397ad998c60e71c",
"amount": 5
},
{
"ewallet": "ewallet_e284796734f7e88dac3691f69ef7d7d1",
"amount": 10
}
],
"metadata": {
"merchant_defined": true
},
"merchant_reference_id": "CW1234567",
"reason": "Not needed"
}
Response
{
"status": {
"error_code": "",
"status": "SUCCESS",
"message": "",
"response_code": "",
"operation_id": "e85aa24a-3aee-46c0-b860-6cf9a510f48c"
},
"data": {
"id": "refund_888b6aace96c1656666849c44af6b5c7",
"amount": 15,
"payment": "payment_fe55e4af171eb235a9708fe6727fc652",
"currency": "USD",
"failure_reason": "",
"metadata": {
"merchant_defined": true
},
"reason": "Not needed",
"status": "Completed",
"receipt_number": 0,
"created_at": 1686068768,
"updated_at": 1686068769,
"merchant_reference_id": "CW1234567",
"payment_created_at": 1686068731,
"payment_method_type": "us_debit_visa_card",
"ewallets": [
{
"ewallet": "ewallet_e284796734f7e88dac3691f69ef7d7d1",
"amount": 10
},
{
"ewallet": "ewallet_aae2950a42c497c12397ad998c60e71c",
"amount": 5
}
],
"proportional_refund": false,
"merchant_debited_amount": null,
"merchant_debited_currency": null,
"fx_rate": null,
"fixed_side": null
}
}
Handling specific refunds from multiple sellers can be an easy task by enabling refunds specific to individual products or services with the Rapyd API. With secure processing and accurate attribution, Rapyd empowers businesses to deliver excellent customer service and maintain a seamless payment experience.