HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Get Purchase Order

Function

To get purchase order with its ID
使用進貨單 ID 獲取特定一個進貨單的詳細資料

URL

GET `https://open.shopline.io/v1/pos/purchase_orders/:id

Request Parameters

ParameterTypeDescriptionExample
id
*Required
StringPurchase Order ID
進貨單 ID
6049d431709478001d7c496b

Request Example

curl --location -g --request GET 'https://open.shopline.com/v1/pos/purchase_orders/:id' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ${token}' \
--header 'Content-Type: application/json'

Response Body

{
    "id": "6419665ee39bf300377cc5a4",
    "type": "purchase",
    "number": "20230321081006571",
    "custom_number": "",
    "status": "pending",
    "arrival_status": "pending_to_receive",
    "scheduled_time": null,
    "actual_time": null,
    "other_fee": {
        "cents": 0,
        "currency_symbol": "NT$",
        "currency_iso": "TWD",
        "label": "",
        "dollars": 0
    },
    "total_amount": {
        "cents": 0,
        "currency_symbol": "NT$",
        "currency_iso": "TWD",
        "label": "",
        "dollars": 0
    },
    "current_amount": {
        "cents": 0,
        "currency_symbol": "NT$",
        "currency_iso": "TWD",
        "label": "",
        "dollars": 0
    },
    "total_quantity": 1,
    "current_quantity": 0,
    "note": "",
    "child_id": null,
    "group_id": null,
    "wapos_id": null,
    "items": [
        {
            "id": "6419665ee39bf300377cc5a3",
            "product_id": "6404a28b9843a60036e3e802",
            "variation_id": "",
            "product_name": {
                "zh-hant": "png"
            },
            "variation_titles": null,
            "variation_name": null,
            "image_url": "https://img-shoplineapp-com.s3.amazonaws.com/media/image_clips/64058ac09843a60039e3e803/original.png?1678084797",
            "sku": "fku6900",
            "gtin": "54522008",
            "total_quantity": 1,
            "current_quantity": 0,
            "purchase_price": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "supplier_id": null,
            "supplier_name": null,
            "subtotal": {
                "cents": 0,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "",
                "dollars": 0
            },
            "price": {
                "cents": 100,
                "currency_symbol": "NT$",
                "currency_iso": "TWD",
                "label": "NT$100",
                "dollars": 100
            },
            "product_removed": false,
            "unlimited_quantity": true,
            "same_price": false,
            "total_stocks_cost": null,
            "stocks": {
                "60f6654a0c801333984b34c7": 0
            }
        }
    ],
    "issuer": {
        "email": "",
        "name": "joe",
        "phone": "",
        "merchant_id": "60f64c7b262ba6001b9c0463",
        "wapos_id": "41639cb2-2159-4287-bc64-70cee1cd19ed",
        "status": "active",
        "alias_name": "",
        "channel_ids": [
            "633187c864f79a0035c1bbd8",
            "63318a4564f79a0032c1bbb6",
            "62de16f6d7043e0047a0942e",
            "62d1135bba26b1186e5b8066"
        ],
        "id": "633e59bb668bf700328733ba",
        "pin_code": "123456"
    },
    "executor": null,
    "channel": {
        "name": {
            "en": "He貓店5",
            "zh-hant": "He貓店5"
        },
        "id": "633187c864f79a0035c1bbd8",
        "warehouse_id": "60f6654a0c801333984b34c7"
    },
    "has_removed_items": false,
    "group_purchase_orders": null,
    "created_at": "2023-03-21T08:10:06.774Z",
    "updated_at": "2023-03-21T08:10:06.774Z"
}