POST
/
openapi
/
v1
/
SalesOrders
/
BulkUpsert
Bulk Add or Update SalesOrder.
curl --request POST \
  --url https://api.oplog.one/openapi/v1/SalesOrders/BulkUpsert \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '[
  {
    "referenceNumber": "<string>",
    "salesChannel": "<string>",
    "orderCreatedAt": "2023-11-07T05:31:56Z",
    "customer": {
      "email": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "phone": "<string>"
    },
    "shippingAddress": {
      "addressFirstName": "<string>",
      "addressLastName": "<string>",
      "company": "<string>",
      "addressOne": "<string>",
      "addressTwo": "<string>",
      "district": "<string>",
      "city": "<string>",
      "postalCode": "<string>",
      "country": "<string>",
      "addressPhone": "<string>",
      "taxOffice": "<string>",
      "taxNumber": "<string>"
    },
    "billingAddress": {
      "addressFirstName": "<string>",
      "addressLastName": "<string>",
      "company": "<string>",
      "addressOne": "<string>",
      "addressTwo": "<string>",
      "district": "<string>",
      "city": "<string>",
      "postalCode": "<string>",
      "country": "<string>",
      "addressPhone": "<string>",
      "taxOffice": "<string>",
      "taxNumber": "<string>"
    },
    "lineItems": [
      {
        "amountInOrder": 123,
        "sku": "<string>",
        "productSalePrice": 123,
        "currency": "TRY"
      }
    ],
    "payment": {
      "paymentOption": "Paid",
      "totalPaymentAmount": 123,
      "currency": "TRY"
    },
    "cargo": {
      "cargoCarrier": "<string>",
      "cargoDocumentUrl": "<string>",
      "cargoCode": "<string>",
      "cargoType": "RegularDelivery",
      "expectedShipmentDate": "2023-11-07T05:31:56Z"
    },
    "vas": {
      "packageNote": "<string>",
      "giftVAS": {
        "giftWrap": true,
        "giftNotes": "<string>"
      },
      "documentVAS": {
        "documentUrl": "<string>"
      }
    },
    "integrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]'

Authorizations

Authorization
string
header
required

Headers

X-Tenant-Id
string

If you want to emulate, please enter TenantId.

Body

The body is of type object[].

Response

200

Success