GET Single Purchase Invoice
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
GET
https://{{subdomain}}.daftra.com/api2
Purchase Invoices
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://.daftra.com/api2/purchase_invoices/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
"code": 200,
"result": "successful",
"data": {
"PurchaseOrder": {
"id": 98,
"staff_id": 0,
"no": "987",
"supplier_id": 0,
"is_offline": true,
"currency_code": "USD",
"supplier_business_name": "string",
"supplier_first_name": "string",
"supplier_last_name": "string",
"supplier_email": "user@example.com",
"supplier_address1": "string",
"supplier_address2": "string",
"supplier_postal_code": "string",
"supplier_city": "string",
"supplier_state": "string",
"supplier_country_code": "str",
"date": "2019-08-24",
"draft": true,
"Supplier_active_secondary_address": true,
"Supplier_secondary_country_code": "string",
"Supplier_secondary_name": "string",
"Supplier_secondary_address1": "string",
"Supplier_secondary_address2": "string",
"Supplier_secondary_city": "string",
"Supplier_secondary_state": "string",
"Supplier_secondary_postal_code": "string",
"is_received": true,
"received_date": "2019-10-30 12:59:30",
"Supplier": {
"id": 0,
"is_offline": true,
"supplier_number": 0,
"staff_id": 0,
"business_name": "string",
"first_name": "string",
"last_name": "string",
"email": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"phone1": "string",
"phone2": "string",
"country_code": "str",
"notes": "string",
"active_secondary_address": true,
"secondary_name": "string",
"secondary_address1": "string",
"secondary_address2": "string",
"secondary_city": "string",
"secondary_state": "string",
"secondary_postal_code": "string",
"secondary_country_code": "string",
"language_code": "string",
"default_currency_code": "strin",
"last_login": "2018-05-10 00:42:00",
"suspend": true,
"last_ip": "127.0.0.1",
"created": "2018-05-10 00:42:00",
"modified": "2018-05-12 13:05:06",
"follow_up_status": null,
"bn1": "string",
"bn1_label": "string",
"bn2_label": "string",
"bn2": "string"
},
"staff": {},
"PurchaseOrderItem": [
{
"id": 0,
"product_id": 0,
"org_name": "string",
"description": "string",
"unit_price": 0,
"quantity": 0,
"tax1": 0,
"tax2": 0,
"purchase_order_id": 0,
"item": "string",
"summary_tax1": 0,
"summary_tax2": 0,
"subtotal": 0,
"col_3": null,
"col_4": null,
"col_5": null,
"discount": 0,
"discount_type": "1 => Percentage",
"store_id": "The Purchase Order store id",
"calculated_discount": 0,
"created": "2018-05-10 00:42:00",
"modified": "2018-05-12 13:05:06"
}
],
"PurchaseOrderTax": [
{
"id": 0,
"tax_id": 0,
"name": "string",
"value": 0,
"description": "string",
"included": 0,
"created": "2018-05-10 00:42:00",
"modified": "2018-05-12 13:05:06"
}
],
"PurchaseOrderCustomField": {},
"PurchaseOrderPayment": [
{
"id": 0,
"purchase_order_id": 0,
"payment_method": "string",
"amount": 0,
"transaction_id": "string",
"treasury_id": 0,
"date": "2019-08-24T14:15:22Z",
"email": "string",
"status": 0,
"notes": "string",
"response_code": "string",
"response_message": "string",
"created": "2019-08-24T14:15:22Z",
"modified": "2019-08-24T14:15:22Z",
"currency_code": "str",
"first_name": "string",
"last_name": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country_code": "str",
"phone1": "string",
"phone2": "string",
"transaction_type": "string",
"processed": true,
"attachment": "string",
"staff_id": 0,
"receipt_notes": "string"
}
]
}
},
"pagination": {
"prev": "/api2/clients/?page=1",
"next": "/api2/clients/?page=3",
"page": 2,
"page_count": 5,
"total_results": 98
}
}
Request
Path Params
id
stringÂ
required
format
stringÂ
required
Header Params
Accept
stringÂ
optional
Default:
application/json
Content-Type
stringÂ
optional
Default:
application/json
Authorization
stringÂ
optional
Default:
Bearer {{access_token}}
apikey
stringÂ
deprecated
Default:
{{apikey}}