Purchase Order

You can create and retrieve orders using the Purchase Order resource.


API: Get Purchase Order

Learn more : Specification

  • URL:

    /purchase-order

  • Method:

    GET

  • URL Params

ParameterRequiredDescription
id_listNoList of order id
next_tokenNoA token for use in pagination. Your subsequent call can include next_token=xxxxx in order to fetch the next page of the list
  • Data Params

    None

  • Success Response

    • Code: 200
      Content:
      [
        {
            "items": [
            {
                "completion_date": "2022-09-30T20:56:21.588Z",
                "created_at": "2022-09-30T20:56:21.588Z",
                "eta": "2022-09-30T20:56:21.588Z",
                "from_supplier": {
                "id": 0,
                "name": "string"
                },
                "id": 0,
                "items": [
                {
                    "completed_quantity": 0,
                    "quantity": 0,
                    "sku": "string"
                }
                ],
                "remarks": "string",
                "status": "pending",
                "to_warehouse_id": "string",
                "updated_at": "2022-09-30T20:56:21.588Z"
            }
            ],
            "next_token": "string"
        }
      ]
      
  • Sample Call:

        curl -X 'GET' \
            'https://s2-api.ventmere.io/partner/purchase-order' \
            -H 'accept: application/json' \
            -H 'X-AccessKey: xxxxxxxxxxxxx'
    

API: Create Purchase Order

Specification

  • URL:

    /purchase-order

  • Method:

    POST

  • URL Params:

    None

  • Data Params

        {
            "eta": "2022-09-30T21:06:03.806Z",
            "from_supplier_id": 0,
            "items": [
                {
                "quantity": 0,
                "sku": "string"
                }
            ],
            "remarks": "string",
            "to_warehouse_id": "string"
        }
    
  • Success Response

    • Code: 200
      Content:
        {
            "completion_date": "2022-09-30T21:06:03.808Z",
            "created_at": "2022-09-30T21:06:03.808Z",
            "eta": "2022-09-30T21:06:03.808Z",
            "from_supplier": {
                "id": 0,
                "name": "string"
            },
            "id": 0,
            "items": [
                {
                "completed_quantity": 0,
                "quantity": 0,
                "sku": "string"
                }
            ],
            "remarks": "string",
            "status": "pending",
            "to_warehouse_id": "string",
            "updated_at": "2022-09-30T21:06:03.808Z"
        }
      
  • Sample Call:

        curl -X 'POST' \
            'https://s2-api.ventmere.io/partner/purchase-order' \
            -H 'accept: application/json' \
            -H 'X-AccessKey: xxxxxxxxxxxxx' \
            -H 'Content-Type: application/json' \
            -d '{
                "eta": "2022-09-30T21:10:19.904Z",
                "from_supplier_id": 0,
                "items": [
                    {
                    "quantity": 0,
                    "sku": "string"
                    }
                ],
                "remarks": "string",
                "to_warehouse_id": "string"
            }'