Skip to content

Instantly share code, notes, and snippets.

@davidelbe
Last active August 28, 2020 14:27
Show Gist options
  • Save davidelbe/aec801846c739fbee84dc921938d66d1 to your computer and use it in GitHub Desktop.
Save davidelbe/aec801846c739fbee84dc921938d66d1 to your computer and use it in GitHub Desktop.
JSON examples - Standout / Sirvoy
{
"id": 1234567,
"booking_id": 24,
"date": "2020-08-27",
"invoice_number": 243,
"company_id": 37,
"status": "unpaid",
"amount_excluding_vat": 1100.00,
"vat_amount": 275.00,
"total_amount": 1375.00,
"outstanding_balance": 1250.00,
"currency": "SEK",
"customer": {
"id": 12523,
"name": "John Snow",
"company": "The Wall AB",
"address": "...",
"country": "Sweden"
},
"payments": [
{
"id": 12456,
"invoice_id": 243,
"date": "2020-08-27 14:57:01 UTC",
"payment_type": "CC",
"amount": 125.00,
"booking_id": 24
}
],
"invoice_rows": [
{
"id": 1234,
"sku": "ROOM-1",
"title": "Room 1337",
"category": "Accommodation",
"amount": 1000.00,
"quantity": 1,
"vat_amount": 250.00,
"vat_percentage": 25.00,
"total_row_amount": 1250.00
},
{
"id": 1235,
"sku": "BRUSHY",
"title": "Toothbrush",
"category": "Extras",
"amount": 50.00,
"quantity": 2,
"vat_amount": 25.00,
"vat_percentage": 25.00,
"total_row_amount": 125.00
}
]
}
{
"id": 12456,
"invoice_id": 243,
"date": "2020-08-27 14:57:01 UTC",
"payment_type": "CC",
"amount": 125.00,
"booking_id": 24
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment