Submit an order directly to Limio. This will apply the changes immediately and can be used to update a subscription, change the offer, or update customer details.
Create a new subscription
OK
Unauthorized
Not found
Bad Gateway
{- "external_id": "string",
- "initiated_source": "string",
- "source": "string",
- "process_immediately": true,
- "order_type": "new",
- "orderItems": [
- {
- "offer": {
- "id": "8a512ee55befaea0f7fa962cea9982d0e84f0098",
- "version": "4dd34671f26fdbbf240560b78f7f2f54654cde72"
}, - "quantity": 1
}
], - "orderDiscount": {
- "name": "TEST123",
- "productDetails": {
- "ratePlan": {
- "path": "30% Off Monthly"
}, - "product": {
- "path": "/products/Discounts"
}
}, - "product": {
- "baseTemplate": "/config/templates/products/default",
- "entitlements": [
- {
- "$ref": "/entitlements/Digital"
}
], - "path": "/products/Digital",
- "created": "2023-12-11T13:44:43+00:00",
- "modified": "2024-01-15T13:56:18+00:00",
- "attributes": {
- "display_name__limio": "Digital",
- "has_delivery__limio": false,
- "product_code__limio": "LI.DIGITAL"
}, - "record_type": "product",
- "lastSynced": "2024-03-12T16:00:35.232Z",
- "synced": true,
- "syncedFrom": "2c92c0f9778c090d0177aa4f357d043b"
}, - "discountOverrides": {
- "discountType": "DiscountPercentage",
- "durationLength": 1,
- "durationType": "Months",
- "percentageDiscount": 10,
- "amountDiscount": 10,
- "currency": "USD",
- "orderItemsWithSpecifiedDiscount": {
- "discountedOffers": [ ]
}
}
}, - "billingDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "deliveryDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "customerDetails": {
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string"
}, - "tracking": {
- "offers": [
- "/offers2/$75 for 52 weeks then $31.96 every 4 weeks autorenew"
], - "purchaseCountryCode": "GB",
- "accountId": "0017x00000Q9O9qAAF",
- "contactId": "0037x00000F58M9AAJ",
- "userId": "0057x0000088Oh3AAE"
}, - "payment": {
- "type": "zuora",
- "zuora": {
- "refId": "2c92c0f96e4e3b7f016e5f3b3b7b0b3d",
- "paymentGateway": "CreditCard_UK"
}
}, - "orderDate": "2020-01-01T00:00:00Z",
- "checkoutId": "basket-22e3d318-92e2-4909-b59c-1265623bc3f6",
- "country": "GB"
}{- "id": "string",
- "order_reference": "string",
- "status": "string",
- "external_id": "string",
- "subscriptionReference": "string",
- "owner": "string"
}Submit an order using management credentials. Admin users can optionally include a partner organisation to attribute the order to and run partner-specific eligibility checks and associate the order, and all its related objects with the partner organisation.
object Submit the order on behalf of a specific partner organisation. | |||||||||||||||||||||||||||||||||
| external_id | string external order reference | ||||||||||||||||||||||||||||||||
| initiated_source | string initiated source of the order. "shop" and "salesforce" used by limio. | ||||||||||||||||||||||||||||||||
| source | string source of the order. "shop" and "salesforce" used by limio. | ||||||||||||||||||||||||||||||||
| process_immediately | boolean if true the order is processed synchronously | ||||||||||||||||||||||||||||||||
| order_type required | string Value: "new" | ||||||||||||||||||||||||||||||||
required | Array of objects | ||||||||||||||||||||||||||||||||
object (OrderDiscount) Order Discount | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
required | object (Address) Address | ||||||||||||||||||||||||||||||||
object (Address) Address | |||||||||||||||||||||||||||||||||
required | object (CustomerDetails) | ||||||||||||||||||||||||||||||||
object (Tracking) | |||||||||||||||||||||||||||||||||
required | ZuoraPayment (object) Payment | ||||||||||||||||||||||||||||||||
| orderDate | string <date-time> the date on which the subscription should start | ||||||||||||||||||||||||||||||||
| checkoutId required | string the limio session checkout id for this order | ||||||||||||||||||||||||||||||||
| country required | string the country code of the customer's purchase location | ||||||||||||||||||||||||||||||||
OK
Invalid partner organisation or malformed order payload.
Unauthorized
Not found
Bad Gateway
{- "forPartner": {
- "id": "partner_org-123"
}, - "external_id": "string",
- "initiated_source": "string",
- "source": "string",
- "process_immediately": true,
- "order_type": "new",
- "orderItems": [
- {
- "offer": {
- "id": "8a512ee55befaea0f7fa962cea9982d0e84f0098",
- "version": "4dd34671f26fdbbf240560b78f7f2f54654cde72"
}, - "quantity": 1
}
], - "orderDiscount": {
- "name": "TEST123",
- "productDetails": {
- "ratePlan": {
- "path": "30% Off Monthly"
}, - "product": {
- "path": "/products/Discounts"
}
}, - "product": {
- "baseTemplate": "/config/templates/products/default",
- "entitlements": [
- {
- "$ref": "/entitlements/Digital"
}
], - "path": "/products/Digital",
- "created": "2023-12-11T13:44:43+00:00",
- "modified": "2024-01-15T13:56:18+00:00",
- "attributes": {
- "display_name__limio": "Digital",
- "has_delivery__limio": false,
- "product_code__limio": "LI.DIGITAL"
}, - "record_type": "product",
- "lastSynced": "2024-03-12T16:00:35.232Z",
- "synced": true,
- "syncedFrom": "2c92c0f9778c090d0177aa4f357d043b"
}, - "discountOverrides": {
- "discountType": "DiscountPercentage",
- "durationLength": 1,
- "durationType": "Months",
- "percentageDiscount": 10,
- "amountDiscount": 10,
- "currency": "USD",
- "orderItemsWithSpecifiedDiscount": {
- "discountedOffers": [ ]
}
}
}, - "billingDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "deliveryDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "customerDetails": {
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "email": "string"
}, - "tracking": {
- "offers": [
- "/offers2/$75 for 52 weeks then $31.96 every 4 weeks autorenew"
], - "purchaseCountryCode": "GB",
- "accountId": "0017x00000Q9O9qAAF",
- "contactId": "0037x00000F58M9AAJ",
- "userId": "0057x0000088Oh3AAE"
}, - "payment": {
- "type": "zuora",
- "zuora": {
- "refId": "2c92c0f96e4e3b7f016e5f3b3b7b0b3d",
- "paymentGateway": "CreditCard_UK"
}
}, - "orderDate": "2020-01-01T00:00:00Z",
- "checkoutId": "basket-22e3d318-92e2-4909-b59c-1265623bc3f6",
- "country": "GB"
}{- "id": "string",
- "order_reference": "string",
- "status": "string",
- "external_id": "string",
- "subscriptionReference": "string",
- "owner": "string"
}Preview an order in Limio to see the changes that will be applied. This can be used to show the user what will happen before they confirm the order, including changes to future charges, the effective date of the change, and any other details.
Preview a new subscription order to see pricing, tax calculation, and schedule before submitting.
Tax Address Requirements:
deliveryDetails if products have delivery, otherwise billingDetailsIf address requirements aren't met, a default address for the region will be used based on the order currency.
| order_type required | string Value: "new" | ||||||||||||||||||||||||||||||||
required | Array of objects Array of offers to include in the subscription | ||||||||||||||||||||||||||||||||
required | object Address | ||||||||||||||||||||||||||||||||
object Address | |||||||||||||||||||||||||||||||||
object (OrderDiscount) Order Discount | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| orderDate | string <date-time> The date on which the subscription should start. Defaults to current date if not provided. | ||||||||||||||||||||||||||||||||
| country | string The country code of the customer's purchase location | ||||||||||||||||||||||||||||||||
OK
Unauthorized
Not found
Bad Gateway
{- "order_type": "new",
- "orderItems": [
- {
- "offer": {
- "id": "8a512ee55befaea0f7fa962cea9982d0e84f0098",
- "version": "4dd34671f26fdbbf240560b78f7f2f54654cde72"
}, - "quantity": 1,
- "type": "offer",
- "startDate": "2019-08-24T14:15:22Z"
}
], - "billingDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "NY",
- "postalCode": "10001",
- "country": "GB"
}, - "deliveryDetails": {
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "workEmail": "string",
- "phone": "string",
- "workPhone": "string",
- "otherPhone": "string",
- "company": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postalCode": "string",
- "country": "string"
}, - "orderDiscount": {
- "name": "TEST123",
- "productDetails": {
- "ratePlan": {
- "path": "30% Off Monthly"
}, - "product": {
- "path": "/products/Discounts"
}
}, - "product": {
- "baseTemplate": "/config/templates/products/default",
- "entitlements": [
- {
- "$ref": "/entitlements/Digital"
}
], - "path": "/products/Digital",
- "created": "2023-12-11T13:44:43+00:00",
- "modified": "2024-01-15T13:56:18+00:00",
- "attributes": {
- "display_name__limio": "Digital",
- "has_delivery__limio": false,
- "product_code__limio": "LI.DIGITAL"
}, - "record_type": "product",
- "lastSynced": "2024-03-12T16:00:35.232Z",
- "synced": true,
- "syncedFrom": "2c92c0f9778c090d0177aa4f357d043b"
}, - "discountOverrides": {
- "discountType": "DiscountPercentage",
- "durationLength": 1,
- "durationType": "Months",
- "percentageDiscount": 10,
- "amountDiscount": 10,
- "currency": "USD",
- "orderItemsWithSpecifiedDiscount": {
- "discountedOffers": [ ]
}
}
}, - "orderDate": "2025-01-05T00:00:00Z",
- "country": "GB"
}{- "id": "string",
- "order_reference": "string",
- "status": "string",
- "external_id": "string",
- "subscriptionReference": "string",
- "owner": "string"
}