GET Single Purchase Refund
Production
https://{{subdomain}}.daftra.com/api2
Production
https://{{subdomain}}.daftra.com/api2
GET
https://{{subdomain}}.daftra.com/api2
Purchase Refunds
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://.daftra.com/api2/purchase_refunds/' \
--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": {
"PurchaseRefund": {
"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"
}
},
"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}}