Partially updates a quote with a specified ID.
The update operation can only be used for quotes with a status
of draft
.
Quote updated.
websiteId required | string (WebsiteId) <= 50 characters ID of the website. A website is where an organization obtains a customer. For more information, see Obtain an organization ID and website ID. | ||||||||||||||||||||||||||||||||
customerId required | string (CustomerId) <= 50 characters ID of the customer resource. | ||||||||||||||||||||||||||||||||
required | Array of objects non-empty Items included in the quote. | ||||||||||||||||||||||||||||||||
Array (non-empty) | |||||||||||||||||||||||||||||||||
id | string <= 50 characters ID of the quote. | ||||||||||||||||||||||||||||||||
type | string Specifies the type of quote. A quote can be a subscription or a one-time purchase. | ||||||||||||||||||||||||||||||||
status | string Status of the quote.
| ||||||||||||||||||||||||||||||||
orderId | string or null <= 50 characters ID of the order. | ||||||||||||||||||||||||||||||||
object or null Delivery address of the order. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object or null Billing address of the order. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
object Preview of the quote invoice. | |||||||||||||||||||||||||||||||||
paymentTerms | string Payment terms for the customer which are displayed on the quote. | ||||||||||||||||||||||||||||||||
expirationTime | string or null <date-time> Date and time when the quote expires. The default expiration time is one month from the time the quote is issued.
In a | ||||||||||||||||||||||||||||||||
issuedTime | string or null <date-time> Date and time when the quote is issued. | ||||||||||||||||||||||||||||||||
acceptedTime | string or null <date-time> Date and time when the quote is accepted. | ||||||||||||||||||||||||||||||||
rejectedTime | string or null <date-time> Date and time when the quote is rejected. | ||||||||||||||||||||||||||||||||
canceledTime | string or null <date-time> Date and time when the quote is canceled. | ||||||||||||||||||||||||||||||||
redirectUrl | string <uri> URL to redirect the customer to when a quote is rejected. The default value is the website URL. | ||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||
object (Shipping) Shipping settings. | |||||||||||||||||||||||||||||||||
object (Taxes) Taxes. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
couponIds | Array of strings or null List of coupons to redeem on the customer and apply to the order when the quote is accepted. For more information, see Coupons. | ||||||||||||||||||||||||||||||||
Array of objects Related links. | |||||||||||||||||||||||||||||||||
object Embedded objects that are requested by the | |||||||||||||||||||||||||||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
Invalid data sent.
{- "tax": {
- "calculator": "manual",
- "items": [
- {
- "amount": 0,
- "description": "string"
}
]
}
}
{- "id": "qt_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "type": "subscription-order",
- "status": "draft",
- "websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
- "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
- "orderId": "ord_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "items": [
- {
- "id": "qti_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "quantity": 1,
- "plan": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}, - "description": "Charge per approved transaction with DCC",
- "priceDescription": "50% of the markup for approved transactions",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_embedded": {
- "product": { }
}
}
], - "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": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "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": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "invoicePreview": {
- "currency": "USD",
- "initialAmounts": {
- "amount": 0,
- "subtotalAmount": 0,
- "discountAmount": 0,
- "shippingAmount": 0,
- "taxAmount": 0
}, - "recurringAmounts": {
- "amount": 0,
- "subtotalAmount": 0,
- "discountAmount": 0,
- "shippingAmount": 0,
- "taxAmount": 0
}, - "items": [
- {
- "quoteItemId": "qti_0YV7DES3WPC5J8JD8QTVNZBZNZ",
- "type": "debit",
- "name": "string",
- "description": "Charge per approved transaction with DCC",
- "priceDescription": "50% of the markup for approved transactions",
- "unitPrice": 0,
- "quantity": 0,
- "period": "string",
- "setupUnitPrice": 0,
- "trialUnitPrice": 0,
- "trialPeriod": "string",
- "taxAmount": 0,
- "setupTaxAmount": 0,
- "trialTaxAmount": 0
}
]
}, - "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",
- "signature": {
- "showWrittenSignatureLines": false,
- "organizationPrintedName": null
}, - "shipping": {
- "amount": 0,
- "calculator": "manual"
}, - "tax": {
- "calculator": "manual",
- "amount": 0,
- "items": [
- {
- "amount": 0,
- "description": "string",
- "rate": 0,
- "stateAmount": 0.94,
- "countyAmount": 0.04,
- "cityAmount": 0,
- "specialDistrictAmount": 0.38,
- "stateRate": 0,
- "countyRate": 0,
- "cityRate": 0,
- "specialDistrictRate": 0,
- "jurisdictions": {
- "country": "US",
- "state": "CA",
- "county": "LOS ANGELES",
- "city": "LOS ANGELES"
}
}
]
}, - "couponIds": [
- "string"
], - "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "customer": { },
- "website": { },
- "order": { }
}
}