Use order preview before making an actual order.
Order preview was retrieved.
currency | string = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||
Array of objects Purchase items array. | |||||||||||||||
Array
| |||||||||||||||
Array of objects (ShippingOption) Available shipping rates. | |||||||||||||||
Array
| |||||||||||||||
Array of objects Taxes applied to this purchase. | |||||||||||||||
Array of objects Discounts applied to this purchase. | |||||||||||||||
subtotalAmount | number <double> The purchase's subtotal amount. | ||||||||||||||
taxAmount | number <double> The purchase's taxes amount. | ||||||||||||||
shippingAmount | number <double> The purchase's shipping amount. This property will likely change to support multiple shipping methods. | ||||||||||||||
discountsAmount | number <double> The purchase's discounts amount. | ||||||||||||||
total | number <double> The purchase's total amount. | ||||||||||||||
object (Shipping) Shipping settings. | |||||||||||||||
Unauthorized access, invalid credentials were used.
Access forbidden.
Invalid data was sent.
{- "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "items": [
- {
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "quantity": 0
}
], - "billingAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "London",
- "region": "London",
- "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"
}, - "deliveryAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "London",
- "region": "London",
- "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"
}, - "couponIds": [
- "string"
], - "shipping": {
- "calculator": "manual"
}
}
{- "currency": "USD",
- "lineItems": [
- {
- "type": "debit",
- "description": "string",
- "unitPrice": 49.95,
- "quantity": 0,
- "price": 0,
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "shippingRates": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "descriptions": "string",
- "price": 0,
- "currency": "USD"
}
], - "taxes": [
- {
- "amount": 0,
- "description": "string"
}
], - "discounts": [
- {
- "couponId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "amount": 0,
- "description": "string"
}
], - "subtotalAmount": 0,
- "taxAmount": 0,
- "shippingAmount": 0,
- "discountsAmount": 0,
- "total": 0,
- "shipping": {
- "calculator": "manual"
}
}