Last active
August 20, 2021 08:41
-
-
Save reindert-vetter/78e59abd4a8aa60ffd7b0a8de72e6584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "1", | |
"billing_address": { | |
"name": "" | |
"street": "" | |
}, | |
"created_at": "2021-01-01 12:00:00", | |
"custom_fields": null, | |
"customer": [ | |
"email": "agustina@example.com", | |
"name": null, | |
"phone": null, | |
], | |
"discounts": [ | |
{ | |
"type": "promotion", | |
"amount": { | |
"value": "10.00", | |
"currency": "EUR" | |
}, | |
"code": "SUMMERSALE", | |
"promotion_id": 5, | |
}, | |
], | |
"is_first": true, | |
"is_upsell": true, | |
"items": [ | |
{ | |
"id": 1, | |
"contract": { | |
"id": "1", | |
"interval": "monthly", | |
"source": "manual" "checkout" | |
"type": "oneoff" "subscription" "installment" | |
... | |
}, | |
"discounts": [ | |
{ | |
"type": "promotion", | |
"amount": { | |
"value": "10.00", | |
"currency": "EUR" | |
}, | |
"code": "SUMMERSALE", | |
"promotion_id": 5, | |
}, | |
{ | |
"type": "sale", | |
"amount": { | |
"value": "10.00", | |
"currency": "EUR" | |
}, | |
}, | |
{ | |
"type": "tier", | |
"amount": { | |
"value": "1.00", | |
"currency": "EUR" | |
}, | |
} | |
], | |
"label": "Product A", | |
"product": { | |
"id": 1, | |
"label": "Huidige label product A" | |
} | |
"quantity": 1, | |
"subtotal": "100.00", | |
"tax": { | |
"amount": { | |
"currency": "EUR", | |
"value": "21.00", | |
}, | |
"country": "NL", | |
"rate": 21 | |
} | |
"total": "121.00", | |
"type": "main/null" "gift" "bump" | |
} | |
], | |
"memo": null, | |
"mode": "live", | |
"number": "825ADB9-DRAFT", | |
"paid_at": "2021-01-01 12:00:00" | |
"payment_url": null, | |
"reference": guidv4, | |
"shipping_address": null, | |
"source": "manual" "checkout", | |
"status": "draft" "open" "paid", | |
"subtotal": "100.00", | |
"taxes": [ | |
{ | |
"amount": { | |
"currency": "EUR", | |
"value": "21.00", | |
}, | |
"country": "NL", | |
"rate": 9 | |
}, | |
{ | |
"amount": { | |
"currency": "EUR", | |
"value": "21.00", | |
}, | |
"country": "NL", | |
"rate": 21 | |
} | |
], | |
"total": { | |
"currency": "eur", | |
"total": "121.00", | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Geen period omdat we dat via een contract moeten ophalen: