curl --location --request GET 'https://api.stateset.com/v1/purchaseorder' \ --header 'Content-Type: application/json' \ --header 'Authorization: Token <token>' \ --data-raw '{ "id": "rt_1NXWPnCo6bFb1KQto6C8OWvE", }'
{ { "id": "po_1NXWPnCo6bFb1KQto6C8OWvE", "createdat": "2021-04-20T20:00:00.000Z", "delivery_date": "2021-04-20T20:00:00.000Z", "description": "This is a purchase order.", "external_id": "po_1NXWPnCo6bFb1KQto6C8OWvE", "financer": "0x00000000", "fulfiller": "0x00000000", "lastupdated": "2021-04-20T20:00:00.000Z", "purchase_date": "2021-04-20T20:00:00.000Z", "purchase_order_hash": "0x00000000", "purchase_order_name": "Purchase Order", "purchase_order_number": "po_1NXWPnCo6bFb1KQto6C8OWvE", "purchase_order_status": "0x00000000", "purchaser": "0x00000000", "subtotal": "0.00", "total": "0.00", "vendor": "0x00000000", "transaction_id": "0x00000000" } }
This endpoint gets or creates a new purchase order.