HepsiGlobal Marketplace API
  1. Refunds
HepsiGlobal Marketplace API
  • Introduction
  • Authentication
    • Create token
      POST
  • Products
    • Product Status
      PUT
  • Orders
    • Create Order
      POST
    • Order Item Delivery
      PUT
    • Cancel order by marketplace
      PUT
  • Shipments
    • Send shipment label (fulfillment by MP)
      POST
    • Set shipment status (fulfillment by MP)
      PUT
  • Tracking
    • Shipment Tracking With Barcode
      GET
    • Shipment Tracking With Shipment ID
      GET
  • Refunds
    • Create Refund
      POST
  • Webhooks Integration API (Marketplace's API)
    • Product
      • Product Create
      • Product Update
      • Variant Create
      • Variant Update
      • Enable/Disable product
    • Listing
      • Listing Priority
      • Stock update
      • Price update
      • Bulk Merchant Active
      • Bulk Merchant Inactive
      • Variant Listing Status
      • Variant Listing Count
    • Orders
      • Send invoice
      • Order cancel (canceled by seller)
    • Shipment
      • Create shipment
      • Set shipment status (fulfillment by HG)
      • Cancel shipment
    • Refund
      • Refund create result
  1. Refunds

Create Refund

POST
/v1/refunds
Starts a asynchronous customer refund process. Created refund is final and can not be canceled. This endpoint works asynchronously, hence it may take some time to finalize the operation. Result of the process will be notified over Create Refund Webhook via RequestId.

Request

Body Params application/json

Example
{
    "refund_number": "r12345",
    "order_number": "mp_order123",
    "refund_date": "2024-09-04T23:20:21+03:00",
    "items": [
        {
            "order_item_number": "oi1",
            "quantity": 1,
            "reason": "incorrect_order",
            "amount": 2.34,
            "currency": "USD",
            "customer_explanation": "bad product"
        },
        {
            "order_item_number": "oi2",
            "quantity": 1,
            "reason": "incompatibility_issues",
            "amount": 1.23,
            "currency": "USD",
            "customer_explanation": "bad product"
        }
    ]
}

Request Code 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 '/v1/refunds' \
--header 'Content-Type: application/json' \
--data-raw '{
    "refund_number": "r12345",
    "order_number": "mp_order123",
    "refund_date": "2024-09-04T23:20:21+03:00",
    "items": [
        {
            "order_item_number": "oi1",
            "quantity": 1,
            "reason": "incorrect_order",
            "amount": 2.34,
            "currency": "USD",
            "customer_explanation": "bad product"
        },
        {
            "order_item_number": "oi2",
            "quantity": 1,
            "reason": "incompatibility_issues",
            "amount": 1.23,
            "currency": "USD",
            "customer_explanation": "bad product"
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "request_id": "01J8ZCJEWZP8Q8HB5XZVCEWD1P"
}
Modified at 2025-03-27 12:45:42
Previous
Shipment Tracking With Shipment ID
Next
Product Create
Built with