HepsiGlobal Marketplace API
  1. Orders
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
        POST
      • Order cancel (canceled by seller)
        PUT
    • Shipment
      • Create shipment
      • Set shipment status (fulfillment by HG)
      • Cancel shipment
    • Refund
      • Refund create result
  1. Orders

Order cancel (canceled by seller)

PUT
/webhooks/order-cancel
Each item within the cancel_items array specifies details for cancellation:

Request

Body Params application/json

Example
{
    "cancel_id": 1078354,
    "order_number": "NMSAC3R37F2891PN-IO-1",
    "cancel_quantity": 1,
    "order_item_number": "NMSAC3R37F2891PN-IO-1_HBCV000057B1XL",
    "reason": "out_of_stock"
}

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 PUT '/webhooks/order-cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cancel_id": 1078354,
    "order_number": "NMSAC3R37F2891PN-IO-1",
    "cancel_quantity": 1,
    "order_item_number": "NMSAC3R37F2891PN-IO-1_HBCV000057B1XL",
    "reason": "out_of_stock"
}'

Responses

🟢200Successful Response
application/json
Body

Example
{}
Modified at 2025-03-27 12:27:14
Previous
Send invoice
Next
Create shipment
Built with