Creates a quote for requested reactivation. This operation applies the requested reactivation to the subscription when the quote invoice is paid.
Change items request.
ID of the order associated with the reactivation quote.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/storefront/subscription-reactivations
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/storefront/subscription-reactivations
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/storefront/subscription-reactivations
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/storefront/subscription-reactivations \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"orderId": "ord_01HVKA5975PJBSQ1SX72G3MSZC",
"items": [
{
"planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X",
"quantity": 0,
"usageLimits": {
"softLimit": {
"quantity": 0
},
"hardLimit": {
"quantity": 0
},
"trialLimit": 20.725
}
}
],
"preview": true
}'Quote for requested reactivation is created and issued.
Type of the quote for churned or canceled order reactivation. When a quote is accepted, quote items and settings are applied to the order and the order is reactivated.
ID of the payment invoice.
Status of the quote.
| Enum Value | Description |
|---|---|
| draft | Quote can be edited. This quote cannot be sent to a customer. |
| issued | Quote cannot be edited. This quote can be sent to a customer. |
| accepted | Customer accepted the quote. The related order is reactivated and quote items and settings are applied to the order. |
| rejected | Customer rejected the quote. |
| canceled | Organization or customer canceled the quote. |
| expired | Expired before customer or organization interaction. |
ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
ID of the customer resource.
Date and time when the quote expires. The default expiration time is one month from the time the quote is issued. In a draft state, this field may be null.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
URL to redirect the customer to when a quote is rejected. The default value is the website URL.
{ "id": "qt_01HXBZMEGPETPHJZH6V4RHBMA8", "type": "reactivation", "acceptanceFulfillment": [ { … } ], "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "status": "draft", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "order": { "id": "ord_01HVKA5975PJBSQ1SX72G3MSZC", "items": [ … ], "effectiveTime": "2019-08-24T14:15:22Z", "renewalTime": "2019-08-24T14:15:22Z", "paymentInstrumentId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "autopay": true, "shipping": { … }, "deliveryAddress": { … }, "billingAddress": { … } }, "invoicePreview": { "currency": "USD", "initialAmounts": { … }, "recurringAmounts": { … }, "items": [ … ] }, "paymentTerms": "string", "expirationTime": "2019-08-24T14:15:22Z", "issuedTime": "2019-08-24T14:15:22Z", "acceptedTime": "2019-08-24T14:15:22Z", "rejectedTime": "2019-08-24T14:15:22Z", "canceledTime": "2019-08-24T14:15:22Z", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "redirectUrl": "http://example.com", "signature": { "showWrittenSignatureLines": false, "organizationPrintedName": null }, "tax": { "calculator": "manual", "amount": 0.1, "items": [ … ] }, "_links": [ { … } ], "_embedded": { "customer": {}, "creditMemos": [ … ], "website": {}, "order": {}, "invoice": {} } }