ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
| Items Enum Value | Description |
|---|---|
| customer | |
| payment |
[ "payment" ]
Date and time when the quote expires. A new or updated expiration time must be later than the current time. The default expiration time is one month from the time the quote is issued. In a draft state, this field may be null.
List of coupons to redeem on the customer and apply to the related invoice.
For more information, see Coupons.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/quotes
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/quotes
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/quotes
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/quotes \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"type": "creation",
"acceptanceConditions": [
"payment"
],
"websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
"customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
"order": {
"items": [
{
"type": "subscription",
"quantity": 1,
"quantityFilled": 5.125,
"plan": {
"id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
},
"description": "Charge per approved transaction with DCC",
"priceDescription": "50% of the markup for approved transactions",
"usageLimits": null
}
],
"autopay": false,
"shipping": {
"amount": 0.1,
"calculator": "manual"
},
"deliveryAddress": {
"firstName": "Benjamin",
"lastName": "Franklin",
"organization": "Rebilly",
"address": "36 Craven St",
"address2": "string",
"city": "Austin",
"region": "Texas",
"country": "GB",
"postalCode": "WC2N 5NF",
"phoneNumbers": [
{
"label": "main",
"value": "1-512-777-0269",
"primary": true
}
],
"emails": [
{
"label": "main",
"value": "rebilly@example.com",
"primary": true
}
],
"dob": "1980-04-01",
"jobTitle": "CEO"
},
"billingAddress": {
"firstName": "Benjamin",
"lastName": "Franklin",
"organization": "Rebilly",
"address": "36 Craven St",
"address2": "string",
"city": "Austin",
"region": "Texas",
"country": "GB",
"postalCode": "WC2N 5NF",
"phoneNumbers": [
{
"label": "main",
"value": "1-512-777-0269",
"primary": true
}
],
"emails": [
{
"label": "main",
"value": "rebilly@example.com",
"primary": true
}
],
"dob": "1980-04-01",
"jobTitle": "CEO"
},
"startTime": "2019-08-24T14:15:22Z",
"isLegacy": true
},
"paymentTerms": "string",
"expirationTime": "2019-08-24T14:15:22Z",
"redirectUrl": "http://example.com",
"signature": {
"showWrittenSignatureLines": false,
"organizationPrintedName": null
},
"tax": {
"calculator": "manual",
"items": [
{
"amount": 0.1,
"description": "string"
}
]
},
"couponIds": [
"string"
]
}'Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.
Number of requests still available for this rate limit. For more information, see Rate limits.
| Enum Value | Description |
|---|---|
| draft | |
| issued | |
| accepted | |
| rejected | |
| canceled | |
| expired |
ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID.
Date and time when the quote expires. A new or updated expiration time must be later than the current time. The default expiration time is one month from the time the quote is issued. In a draft state, this field may be null.
List of coupons to redeem on the customer and apply to the related invoice.
For more information, see Coupons.
{ "id": "qt_01HXBZMEGPETPHJZH6V4RHBMA8", "type": "creation", "acceptanceFulfillment": [ { … } ], "isNewOrder": true, "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "status": "draft", "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG", "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "order": { "id": "ord_01HVKA5975PJBSQ1SX72G3MSZC", "items": [ … ], "autopay": false, "shipping": { … }, "deliveryAddress": { … }, "billingAddress": { … }, "startTime": "2019-08-24T14:15:22Z", "isLegacy": true }, "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": [ … ] }, "couponIds": [ "string" ], "_links": [ { … } ], "_embedded": { "customer": {}, "website": {}, "order": {}, "invoice": {} } }