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

Create shipment

POST
/webhooks/create-shipment
This endpoint is used to create a shipment for a given order. It requires specific details about the order, shipment, and items to be included in the shipment.

Request

Body Params application/json

Example
{
    "tracking": [
        {
            "is_default": false,
            "tracking_number": "62753339213219",
            "is_first_mile": true,
            "carrier": "hepsijet"
        },
        {
            "is_default": true,
            "tracking_number": "62753339213219",
            "is_first_mile": false,
            "carrier": "wwe"
        }
    ],
    "order_number": "NMSAC3RFZLAMTTI3-IO-1",
    "proforma_url": "https://cdn.hepsiglobal.com/prod/proforma/*/*/*.pdf",
    "shipment_id": 6492534,
    "items": [
        {
            "quantity": 1,
            "order_item_number": "NMSAC3RFZLAMTTI3-IO-1_HBCV00004HPDKI",
            "total_deci": 1
        }
    ],
    "total_deci": 1
}

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 '/webhooks/create-shipment' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tracking": [
        {
            "is_default": false,
            "tracking_number": "62753339213219",
            "is_first_mile": true,
            "carrier": "hepsijet"
        },
        {
            "is_default": true,
            "tracking_number": "62753339213219",
            "is_first_mile": false,
            "carrier": "wwe"
        }
    ],
    "order_number": "NMSAC3RFZLAMTTI3-IO-1",
    "proforma_url": "https://cdn.hepsiglobal.com/prod/proforma/*/*/*.pdf",
    "shipment_id": 6492534,
    "items": [
        {
            "quantity": 1,
            "order_item_number": "NMSAC3RFZLAMTTI3-IO-1_HBCV00004HPDKI",
            "total_deci": 1
        }
    ],
    "total_deci": 1
}'

Responses

🟢200Successful Response
application/json
Body

Example
{}
Modified at 2025-03-27 12:36:41
Previous
Order cancel (canceled by seller)
Next
Set shipment status (fulfillment by HG)
Built with