Created
January 19, 2024 14:24
-
-
Save abbood/05f62078937289b8e61613746e66a8d7 to your computer and use it in GitHub Desktop.
{{chargebeeDomain}}/api/v2/estimates/create_subscription_for_items?subscription_items[item_price_id][0]={{itemPriceId}}
This file contains hidden or 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
{ | |
"estimate": { | |
"created_at": 1705672766, | |
"object": "estimate", | |
"subscription_estimate": { | |
"status": "active", | |
"next_billing_at": 1708351166, | |
"object": "subscription_estimate", | |
"currency_code": "USD" | |
}, | |
"invoice_estimate": { | |
"recurring": true, | |
"date": 1705672766, | |
"price_type": "tax_exclusive", | |
"sub_total": 0, | |
"total": 0, | |
"credits_applied": 0, | |
"amount_paid": 0, | |
"amount_due": 0, | |
"object": "invoice_estimate", | |
"customer_id": "AzyhEsU1oj6Jn3Ve", | |
"line_items": [ | |
{ | |
"id": "li_AzyhEsU1oj6LW3Vg", | |
"date_from": 1705672766, | |
"date_to": 1708351166, | |
"unit_amount": 0, | |
"quantity": 1, | |
"amount": 0, | |
"pricing_model": "flat_fee", | |
"is_taxed": false, | |
"tax_amount": 0, | |
"object": "line_item", | |
"customer_id": "AzyhEsU1oj6Jn3Ve", | |
"description": "basic fee waived", | |
"entity_type": "plan_item_price", | |
"entity_id": "basic-fee-waived-USD-Monthly", | |
"discount_amount": 0, | |
"item_level_discount_amount": 0 | |
} | |
], | |
"taxes": [], | |
"line_item_taxes": [], | |
"currency_code": "USD", | |
"round_off_amount": 0, | |
"line_item_discounts": [] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment