v1
latestOpenAPI 3.0.12026-07-141671231.8 MBPurchase Requests
List purchase requests
List purchase requests
ℹ️ This endpoint requires one of the following scopes: purchase_requests:all, purchase_requests:readonly
get/api/external/v2/purchase_requests
Query parameters
cursorstring
Example:dXBkYXRlZF9hdDoxNjc0MTIzNDU2
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
limitinteger
Example:20
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
filterstring
Example:[{"field": "user_id", "operator": "eq", "value": "123"}]
You can choose to filter items on specific fields. Available fields and values:
- id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- reviewed_by_id: eq, not_eq, in, not_in
- user_id: eq, not_eq, in, not_in
- supplier_id: eq, not_eq, in, not_in
sortstring
You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id
Response
Returns a list of purchase requests
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 1,
"purchase_order_number": "PR20230001",
"supplier": {
"id": 2,
"url": "https://app.pennylane.com/api/external/v2/suppliers/2"
},
"delivery_address": {
"address": "8 rue de la paix",
"postal_code": "75002",
"city": "Paris",
"country_alpha2": "FR"
},
"reason": "I need a computer to be able to create purchase requests",
"estimated_delivery_date": "2023-12-31",
"amount": "1234.56",
"currency_amount": "1234.56",
"currency_amount_before_tax": "1200.23",
"exchange_rate": "1.0",
"currency_tax": "34.33",
"tax": "34.33",
"purchase_order": {
"filename": "Bon-de-commande_n°2025-1.pdf",
"url": "https://www.pennylane.com/Bon-de-commande_n%C2%B02025-1.pdf"
},
"linked_invoices": {
"items": [
{
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/supplier_invoices/42"
}
]
},
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
]
}