Skip to content

API for order

Import order by file CSV

API: /api/integration/order/import.json

Method: POST

Request Header

keyvalue
X-pawdo-access-tokenAPI KEY

Request Body

keytype
order_namestring
namestring
quantityuint64
mockup1string
mockup2string
mockup3string
mockup4string
design1string
design2string
design3string
design4string
emailstring
address1string
address2string
citystring
countrystring
full_namestring
phonestring
provincestring
zipstring
companystring
province_codestring
ioss_numstring
sku_codestring
propertiesstring
variant_idstring
variant_option1string
variant_option2string
variant_option3string
financial_statusstring
shipping_linestring
notestring
resourcestring

Example

json
{
  "data": [
    {
      "mockup1": "https://example.com/mockup1.jpg",
      "mockup2": "https://example.com/mockup2.jpg",
      "mockup3": "https://example.com/mockup3.jpg",
      "mockup4": "https://example.com/mockup4.jpg",

      "design1": "https://example.com/design1.jpg",
      "design2": "https://example.com/design2.jpg",
      "design3": "https://example.com/design3.jpg",
      "design4": "https://example.com/design4.jpg",

      "order_number": "ORDER-10001",
      "type": "tshirt",
      "title": "Custom T-Shirt",
      "sku": "TS-RED-M",
      "system_sku": "SYS-TS-0001",
      "quantity": 2,
      "tag": "summer-collection",

      "option1": "Red",
      "option2": "Medium",
      "option3": "Cotton",

      "name": "Nguyen Van A",
      "option_ship": "standard",
      "label_ship": "https://example.pdf",
      "address1": "123 Nguyen Trai",
      "address2": "Ward 5",
      "city": "Ho Chi Minh",
      "state": "District 1",
      "province_code": "HCM",
      "country": "Vietnam",
      "country_code": "VN",
      "postal_code": "700000",
      "email": "[email protected]",
      "phone": "012345678",
      "tax": 1.5,

      "thank_card": "Yes",
      "brand_kit_a5": "Included",
      "brand_kit_a5_clothes": "Included",
      "brand_kit_a6": "Not Included",
      "note": "Please print logo on front side.",

      "external_transaction_id": "TXN-123456789",
      "reference_id2": "REF-ABC-001"
    }
  ],
  "note": ""
}

Example (Response)

Case where all orders are valid:

json
{
  "status": true,
  "data": {
    "total": 1,
    "valid": 1,
    "invalid": 0,
    "invalid_orders": []
  }
}

Case where there are invalid orders:

json
{
  "status": true,
  "data": {
    "total": 2,
    "valid": 1,
    "invalid": 1,
    "invalid_orders": [
      {
        "mockup1": "https://example.com/mockup1.jpg",
        "order_number": "ORDER-10002",
        "type": "tshirt",
        "title": "Custom T-Shirt",
        "sku": "TS-RED-M",
        "system_sku": "SYS-TS-0001",
        "quantity": 1,
        "tag": "summer-collection",
        "option1": "Red",
        "option2": "Medium",
        "option3": "Cotton",
        "name": "Nguyen Van B",
        "option_ship": "standard",
        "label_ship": "",
        "address1": "123 Nguyen Trai",
        "address2": "",
        "city": "Ho Chi Minh",
        "state": "District 1",
        "province_code": "",
        "country": "Vietnam",
        "country_code": "VN",
        "postal_code": "700000",
        "email": "[email protected]",
        "phone": "012345678",
        "tax": 0,
        "thank_card": "",
        "brand_kit_a5": "",
        "brand_kit_a5_clothes": "",
        "brand_kit_a6": "",
        "note": "",
        "external_transaction_id": "",
        "reference_id2": "",
        "error": "Invalid data: ProvinceCode is required"
      }
    ]
  }
}
  • Upon successful order creation, navigate to the Order List interface to verify the information.
  • Alternatively, retrieve the order list using the API documented below.

Create Order Manually

API: /api/integration/orders.json

Method: POST

Request Header

keyvalue
X-pawdo-access-tokenAPI KEY

Request Body (JSON - raw)

  • Content-Type: application/json
keytyperequirednote
order_numberstringRequiredOrder number / reference – must be unique
external_transaction_idstringOptionalExternal transaction ID (from another system)
skip_verify_addressbooleanOptionalSkip address verification step
line_itemsarray of objectsRequiredList of products (maximum 500 items)
addressobjectRequiredShipping address information

Field Details

address

keytyperequirednote
namestringRequiredRecipient's name
option_shipstringRequiredShipping method: standard, express, fast, tiktok
label_shipurlConditionalShipping label URL – required when option_ship is tiktok
address1stringOptionalAddress line 1
address2stringOptionalAddress line 2
citystringOptionalCity
statestringOptionalBang /Tỉnh
province_codestringOptionalState / Province code
countrystringOptionalCountry name
country_codestringRequiredCountry code (ISO 3166-1 alpha-2)
postal_codestringOptionalZIP / Postal code
emailstringOptionalRecipient's email
phonestringOptionalPhone number

line_items

keytyperequirednote
skustringOptionalSKU from external system
system_skustringOptionalInternal system SKU
quantitynumberRequiredQuantity (min > 0, max < 1000)
titlestringOptionalProduct title / name
notestringOptionalInternal note / remark
mockup1..mockup4urlOptionalMockup image URLs (1 to 4)
design1..design4urlOptionalDesign file URLs (1 to 4)
option1..option3stringOptionalProduct variant options
external_line_item_idstringOptionalExternal line item ID (from another system)

Constraints / Validation Rules

keyrule
order_numberMust be unique – used as idempotency key
line_itemsMaximum 500 items
line_items[].quantityMust be > 0 and < 1000

Example (Request)

json
{
  "order_number": "#ORDER-056487",
  "external_transaction_id": "TS-9283023921",
  "skip_verify_address": true,
  "line_items": [
    {
      "sku": "QTR-XS2",
      "system_sku": "QTR-XS2",
      "quantity": 5,
      "title": "",
      "note": "",
      "mockup1": "https://example.com/mockup1.png",
      "mockup2": "",
      "mockup3": "",
      "mockup4": "",
      "design1": "https://example.com/design1.png",
      "design2": "",
      "design3": "",
      "design4": "",
      "option1": "",
      "option2": "",
      "option3": "",
      "external_line_item_id": "LI-1048273842"
    }
  ],
  "address": {
    "name": "John Doe",
    "option_ship": "standard",
    "label_ship": "",
    "address1": "123 Main Street",
    "address2": "Apartment 4B",
    "city": "Los Angeles",
    "province_code": "CA",
    "country": "United States",
    "country_code": "US",
    "postal_code": "90001",
    "email": "[email protected]",
    "phone": ""
  }
}

Example (Response successfully)

json
{
  "data": {
    "order_id": "d33e0745-***-9fb1-01ac3e5135c3"
  },
  "message": "ok",
  "status": true
}