POST
/
marketplace
/
orders
/
import
Pazaryeri siparişi içeri aktar
curl --request POST \
  --url https://api.hemenmagaza.com/v1/marketplace/orders/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "marketplace": "<string>",
  "external_order_id": "<string>",
  "customer": {
    "name": "<string>",
    "email": "jsmith@example.com",
    "id": 123,
    "phone": "<string>"
  },
  "shipping_address": {
    "country": "<string>",
    "city": "<string>",
    "district": "<string>",
    "address": "<string>",
    "postal_code": "<string>"
  },
  "items": [
    {
      "product_id": 123,
      "quantity": 2,
      "sku": "<string>",
      "name": "<string>",
      "unit_price": 123,
      "total": 123
    }
  ]
}
'
{
  "status": "<string>",
  "external_order_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_TOKEN

Headers

Idempotency-Key
string

Aynı yazma isteğinin iki kez işlenmesini önleyen benzersiz anahtar.

Example:

"order-frontend-8f1f7c"

Body

application/json
marketplace
string
required
Example:

"trendyol"

external_order_id
string
required
Example:

"TY-123456"

customer
object
required
shipping_address
object
required
items
object[]
required

Response

Sipariş içe aktarma kuyruğa alındı.

status
string
required
Example:

"queued"

external_order_id
string
required
Example:

"TY-123456"