v2/pendingorders
Less than 1 minute
v2/pendingorders
Description
Get a list of orders published but not processed.
Request
- Method:
GET
- Content Type:
application/json
- URL:
https://api.gosweetspot.com/v2/pendingorders
Headers
- access_key : your unqiue api key provided by GSS.
- site_id : which site you are requesting action for.
Parameters
- None
Return format
A JSON object with array of orders.
Response
Parameter | Type | Description |
---|---|---|
packingslipno | string | Unique order number or packing slip number from your system. |
consignee | string | Recipient name. |
status | string | Current status of order, options PENDING/PICKED/DELIVERED. |
ticketnumber | string | Unique consignment number. |
trackingurl | string | Track and trace website url. |
picked | date | Localised to pickup timezone, pickup time stamp. null if not picked yet. |
delivered | date | Localised to destintation timezone, delivery time stamp. null if not delivered yet. |
ticketprinteddate | date | Localised to origin timezone, when the shipment ticket was created. null if not created yet. |
ticketprintedby | string | Username of the user, creating the ticket. |
ticketdeleteddate | date | Localised to NZ timezone, date and time when the ticket was deeted, if deleted. null if not deleted. |
ticketdeletedby | string | Username of the user, deleting the ticket. |
Request example
curl --location 'https://api.gosweetspot.com/v2/pendingorders' \
--header 'access_key;' \
--header 'site_id;' \
--header 'Content-Type: application/json' \
--data ''
Response example
[
{
"packingslipno": "test-14-07-01",
"consignee": "Test,",
"address1": "",
"address2": "1 Queens Street",
"suburb": "Auckland Centrol",
"city": "Auckland",
"postcode": "",
"country": null,
"delvref": null,
"delvinstructions": null,
"contactname": null,
"contactphone": null,
"email": null
},
{
"packingslipno": "test1-14-07-01",
"consignee": "TEST 1",
"address1": "",
"address2": "1 QUEENS STREET",
"suburb": "Auckland Central",
"city": "Auckland",
"postcode": "1010",
"country": "NZ",
"delvref": null,
"delvinstructions": null,
"contactname": null,
"contactphone": null,
"email": null
},
{
"packingslipno": "test2-14-07-01",
"consignee": "TEST 2",
"address1": "",
"address2": "1 QUEENS STREET",
"suburb": "Auckland Central",
"city": "Auckland",
"postcode": "1010",
"country": "NZ",
"delvref": null,
"delvinstructions": null,
"contactname": null,
"contactphone": null,
"email": null
}
]