Download OpenAPI specification:Download
ECG Orders API allows you to define Contracts, create and manage Orders.
required | Array of objects (OrderCriteriaModel) |
Success
Bad Request
{- "items": [
- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "contractId": "string",
- "subscriber": {
- "nameInformation": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "emailAddress": "string",
- "phoneNumber": "string",
- "mrnNumber": "string",
- "thirdPartyId": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "primaryAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "billingInformation": {
- "sameAsPrimaryAddress": true,
- "billingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "billingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "shippingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string"
}, - "medicalProfile": {
- "height": {
- "feet": 0,
- "inches": 0
}, - "bloodGroup": "string"
}, - "responsibleParties": [
- {
- "firstName": "string",
- "lastName": "string",
- "priority": 0,
- "phoneNumber": "string",
- "emailAddress": "string",
- "relationship": "string"
}
]
}, - "items": [
- {
- "itemCode": "string",
- "qty": 0
}
]
}
]
}
{- "outcomes": [
- {
- "orderId": "string",
- "subscriberId": "string",
- "subscriberEmail": "string",
- "error": true,
- "errors": [
- {
- "code": "string",
- "category": "string",
- "message": "string",
- "loggingDescriptor": {
- "exception": null,
- "errorMessage": "string"
}
}
], - "deviceMatches": [
- {
- "productCode": "string",
- "productId": "string",
- "contractLineItemId": "string"
}
]
}
]
}
required | Array of objects (OrderCriteriaModel) |
Success
Bad Request
{- "items": [
- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "contractId": "string",
- "subscriber": {
- "nameInformation": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "emailAddress": "string",
- "phoneNumber": "string",
- "mrnNumber": "string",
- "thirdPartyId": "string",
- "metadata": {
- "property1": null,
- "property2": null
}, - "primaryAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "billingInformation": {
- "sameAsPrimaryAddress": true,
- "billingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "billingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "shippingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string"
}, - "medicalProfile": {
- "height": {
- "feet": 0,
- "inches": 0
}, - "bloodGroup": "string"
}, - "responsibleParties": [
- {
- "firstName": "string",
- "lastName": "string",
- "priority": 0,
- "phoneNumber": "string",
- "emailAddress": "string",
- "relationship": "string"
}
]
}, - "items": [
- {
- "itemCode": "string",
- "qty": 0
}
]
}
]
}
{- "items": [
- {
- "orderId": "string",
- "subscriberId": "string",
- "subscriberEmail": "string",
- "error": true,
- "errors": [
- {
- "code": "string",
- "category": "string",
- "message": "string",
- "loggingDescriptor": {
- "exception": null,
- "errorMessage": "string"
}
}
]
}
]
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/line-items' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload for create a contract line item
Success
Bad Request
Unauthorized
{- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productId": "string",
- "quantity": 0,
- "optional": true,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}
}
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/line-items/{lineItemId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/line-items/{lineItemId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/line-items/{lineItemId}/archive' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/line-items/{lineItemId}/restore' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
JSON patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
JSON patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
JSON patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
JSON patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": "string",
- "price": 0
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": null,
- "description": null
}, - "price": {
- "flatOrPercent": null,
- "amount": null,
- "interval": null
}
}
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/contracts?organizationIds=string&searchTerm=&skip=0&take=25&orderBy=desc&status=Draft' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "currentPageNumber": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "totalPages": 0,
- "items": [
- {
- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload
Success
Bad Request
Unauthorized
{- "currencyCode": "string",
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}
}
{- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts?skip=0&take=25&status=Draft&parentContracts=false' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "currentPageNumber": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "totalPages": 0,
- "items": [
- {
- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "variants": [
- {
- "productId": null,
- "variants": [ ]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": null,
- "price": null
}, - "activationFee": {
- "descriptionInfo": null,
- "price": null
}, - "warrantySelection": {
- "options": [ ]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}?include=' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
JSON Patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/archive' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/restore' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/publish' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/draft' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "organizationId": "string",
- "organization": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "currencyCode": "string",
- "effectiveDates": {
- "fromDate": "2019-08-24T14:15:22Z",
- "toDate": "2019-08-24T14:15:22Z"
}, - "status": "Draft",
- "lineItems": [
- {
- "id": "string",
- "contractId": "string",
- "optional": true,
- "lineItemType": "PrimaryProduct",
- "primaryProductLineItem": {
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "productTypeLineItem": {
- "productCategory": "Standard",
- "allowedQuantity": 0,
- "excludedProducts": [
- "string"
], - "availableProducts": [
- "string"
], - "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "groupPrice": true,
- "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "deviceOrServiceLineItem": {
- "productCategory": "Standard",
- "productType": "Device",
- "productId": "string",
- "quantity": 0,
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "variants": [
- {
- "productId": "string",
- "variants": [
- {
- "variantProductId": null,
- "price": null
}
]
}
]
}, - "groupedProductsLineItem": {
- "items": [
- { }
], - "joinOperator": "And",
- "pricing": {
- "productFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "activationFee": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "warrantySelection": {
- "options": [
- {
- "id": null,
- "priceDescriptor": null
}
]
}
}, - "perItemPrice": true
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "activation": {
- "active": true,
- "activeStatusChangedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "shippingPrices": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
], - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/shipping-options' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload
object (DescriptionInfoModel) | |
object (PriceModel) |
Success
Bad Request
Unauthorized
{- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}
{- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/shipping-options/{optionId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/shipping-options/{optionId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
JSON patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "priceDescriptor": {
- "descriptionInfo": {
- "title": "string",
- "description": "string"
}, - "price": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}
}, - "archive": {
- "archived": true,
- "archivedAt": "2019-08-24T14:15:22Z"
}
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/shipping-options/{optionId}/archive' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/contracts/{contractId}/shipping-options/{optionId}/restore' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/healthcheck \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
Not Found
curl -i -X POST \ https://orders-dev.ecg-api.com/integrations/rapid/login \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X POST \ https://orders-dev.ecg-api.com/integrations/rapid/logout \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X GET \ https://orders-dev.ecg-api.com/rrms/action-plans \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "id": "string",
- "code": "string",
- "description": "string"
}
]
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X GET \ 'https://orders-dev.ecg-api.com/rrms/action-plans/{code}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "code": "string",
- "description": "string"
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X GET \ https://orders-dev.ecg-api.com/rrms/events \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "id": "string",
- "type": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}, - "retries": 0,
- "lastRetry": "2019-08-24T14:15:22Z",
- "error": {
- "code": "string",
- "category": "string",
- "message": "string",
- "loggingDescriptor": {
- "exception": null,
- "errorMessage": "string"
}
}
}
]
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X POST \ https://orders-dev.ecg-api.com/rrms/events \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X POST \ 'https://orders-dev.ecg-api.com/rrms/events/{eventId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/line-items/status-listing \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": 0,
- "title": "string",
- "description": "string"
}
]
Request's payload
Success
Bad Request
Unauthorized
{- "productId": "string",
- "variantProductId": "string",
- "associatedContractLineItemId": "string",
- "warrantySelection": {
- "id": "string"
}
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
JSON Patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/delete' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/orders/status-listing \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": 0,
- "title": "string",
- "description": "string"
}
]
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders?skip=0&take=25&orderStatuses=0&productIds=string&organizationIds=string&provisioningNeeded=true&searchTerm=&sortBy=CreatedAt&orderBy=desc&fromDate=2019-08-24T14%3A15%3A22Z&toDate=2019-08-24T14%3A15%3A22Z&include=' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "currentPageNumber": 0,
- "totalRecords": 0,
- "recordsPerPage": 0,
- "totalPages": 0,
- "items": [
- {
- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
]
}
Request's payload
Success
Bad Request
Unauthorized
{- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "orderType": "New",
- "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "shippingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string"
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true
}, - "acceptedWaiversInformation": {
- "acceptedWaiverIds": [
- "string"
]
}
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders/{orderId}?include=' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
JSON Patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/orders/{orderId}/delete' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "shippingAddress": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string"
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
JSON Patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload
Success
Bad Request
Unauthorized
{- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
JSON Patch object
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload
Success
Bad Request
Unauthorized
{- "acceptedWaiverIds": [
- "string"
]
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders/{orderId}/activity' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "orderId": "string",
- "activityType": "order_confirmed",
- "title": "string",
- "metaData": {
- "property1": null,
- "property2": null
}
}
]
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/in-process' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "priceBreakdownForMonthlyAndOneTimeFees": true,
- "makeChangesUntilShipmentIsReady": true,
- "authorizeECGToContactWithWelcomePackageDelivery": true
}
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/email-confirmation' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "reason": 0,
- "description": "string"
}
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/reactivate' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/delivery-address-verified' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "shipmentId": "string",
- "rateId": "string",
- "trackingDetails": {
- "trackingId": "string",
- "trackingNumber": "string"
}, - "shippingCost": "string",
- "shipDate": "2019-08-24T14:15:22Z"
}
{- "shipmentDetails": {
- "deliveryAddressVerified": true,
- "shipmentId": "string",
- "rateId": "string",
- "tracking": {
- "trackingNumber": "string",
- "trackingId": "string"
}, - "shippingCost": "string",
- "shipDate": "2019-08-24T14:15:22Z",
- "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders/{orderId}/shipment-details' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "shipmentDetails": {
- "deliveryAddressVerified": true,
- "shipmentId": "string",
- "rateId": "string",
- "tracking": {
- "trackingNumber": "string",
- "trackingId": "string"
}, - "shippingCost": "string",
- "shipDate": "2019-08-24T14:15:22Z",
- "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
}
Success
Bad Request
Unauthorized
Not Found
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/shipped' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/cancel-shipment' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "weight": 0
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
Request's payload
Success
Bad Request
Unauthorized
{- "crateId": "string"
}
{- "id": "string",
- "contractId": "string",
- "organizationId": "string",
- "subscriberId": "string",
- "orderCode": "string",
- "provisioningNeeded": true,
- "orderType": "New",
- "confirmationCode": "string",
- "orderStatus": {
- "id": 0,
- "title": "string",
- "description": "string"
}, - "shippingInformation": {
- "sameAsPrimaryAddress": true,
- "sameAsOrganizationAddress": true,
- "shippingContactName": {
- "salutation": "string",
- "firstName": "string",
- "lastName": "string",
- "nickName": "string"
}, - "address": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "stateProvinceCode": "string",
- "postalCode": "string",
- "countryCode": "string"
}, - "shippingNotes": "string",
- "shippingMethodId": "string",
- "shippingCost": 0,
- "totalLineItemWeight": 0,
- "crateWeight": 0,
- "calculatedCrateId": "string",
- "assignedCrateId": "string",
- "calculatedWeight": 0,
- "assignedWeight": 0
}, - "serviceDetails": {
- "expectedServiceStartDate": "2019-08-24T14:15:22Z",
- "serviceStartDisclaimerAccepted": true,
- "dateServiceDisclaimerAccepted": "2019-08-24T14:15:22Z"
}, - "totals": {
- "oneTimeSubTotal": 0,
- "monthlySubTotal": 0,
- "yearlySubTotal": 0,
- "grandTotal": 0
}, - "acceptedWaiverInformation": {
- "acceptedWaiverIds": [
- "string"
]
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "orderLineItems": [
- {
- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
]
}
curl -i -X GET \ https://orders-dev.ecg-api.com/orders/cancel-reason-listing \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": 0,
- "title": "string",
- "description": "string"
}
]
curl -i -X GET \ https://orders-dev.ecg-api.com/orders/shipment-crates \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "name": "string",
- "code": "string",
- "weight": 0
}
]
Success
Bad Request
Unauthorized
{- "title": "string",
- "description": "string",
- "category": "Standard",
- "productType": "Device",
- "items": [
- {
- "productId": "string",
- "quantity": 0
}
]
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/packages?skip=0&take=25' \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
[- {
- "productId": "string",
- "quantity": 0
}
]
curl -i -X POST \ 'https://orders-dev.ecg-api.com/packages/{packageId}/package-items/{packageItemId}/active' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X POST \ 'https://orders-dev.ecg-api.com/packages/{packageId}/package-items/{packageItemId}/deactive' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/packages/{packageId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
curl -i -X GET \ 'https://orders-dev.ecg-api.com/packages/{packageId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/packages/{packageId}/package-items/{packageItemId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
curl -i -X GET \ 'https://orders-dev.ecg-api.com/packages/{packageId}/package-items/{packageItemId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X POST \ https://orders-dev.ecg-api.com/sync-shopify-products \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/shopify/{shopifyProductId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/products?searchTerm=&title=&description=&category=Standard&productType=Device&tags=&status=All&mode=All&skip=0&take=25' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X GET \ 'https://orders-dev.ecg-api.com/products/{productId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X GET \ 'https://orders-dev.ecg-api.com/products/{productId}/variants' \ -H 'Authorization: YOUR_API_KEY_HERE'
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/products/{productId}/images' \ -H 'Authorization: YOUR_API_KEY_HERE' \ -H 'Content-Type: multipart/form-data' \ -F formFile=string
curl -i -X POST \ 'https://orders-dev.ecg-api.com/products/{productId}/images/{productImageId}' \ -H 'Authorization: YOUR_API_KEY_HERE'
curl -i -X GET \ https://orders-dev.ecg-api.com/devices/rf/device-types \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "code": "string",
- "name": "string"
}
]
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/checkout' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/provisioning-release' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "note": "string"
}
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/provisioning-checkout' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/provisioning-release' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "orderId": "string",
- "contractLineItemId": "string",
- "productId": "string",
- "variantProductId": "string",
- "productCode": "string",
- "provisioningNeeded": true,
- "provisioningTypes": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
], - "provisioningOrder": 0,
- "orderLineItemStatusId": 0,
- "weight": 0,
- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "provisioningInfo": {
- "provisionedBy": "string",
- "provisioningStartedAt": "2019-08-24T14:15:22Z",
- "provisioningCompletedAt": "2019-08-24T14:15:22Z",
- "status": "Provisioned"
}, - "priceSelection": {
- "productPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "activationPrice": {
- "flatOrPercent": "Flat",
- "amount": 0,
- "interval": "Monthly"
}, - "warrantySelection": {
- "id": "string"
}
}, - "audit": {
- "createdBy": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "updatedAt": "2019-08-24T14:15:22Z"
}
}
Request's payload
Success
Bad Request
Unauthorized
{- "provisioningData": {
- "property1": "string",
- "property2": "string"
}, - "note": "string"
}
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X GET \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/provisioning-type' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "items": [
- {
- "provider": "anelto",
- "deviceType": "ble"
}
]
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/xmit' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "reason": 0,
- "description": "string"
}
{- "value": true
}
Request's payload
object or null |
Success
Bad Request
Unauthorized
{- "provisioningData": {
- "property1": "string",
- "property2": "string"
}
}
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/provisioning-data/{code}' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
Unauthorized
curl -i -X POST \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/provision-phone-line' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "success": true,
- "error": {
- "code": "string",
- "category": "string",
- "message": "string",
- "loggingDescriptor": {
- "exception": null,
- "errorMessage": "string"
}
}, - "result": {
- "phoneLineProvisioned": true,
- "rrmsUpdated": true
}
}
This API will remove the number from Rapid, release the number from Twilio and mark the line item as de-provisioned
Request's payload
Success
Bad Request
Unauthorized
{- "reason": 0,
- "description": "string"
}
{- "value": true
}
This API will only release the number from Twilio
Success
Bad Request
Unauthorized
curl -i -X DELETE \ 'https://orders-dev.ecg-api.com/orders/{orderId}/line-items/{lineItemId}/release-phone-line' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/attributes \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "title": "string",
- "code": "string",
- "description": "string"
}
]
Request's payload
Success
Unauthorized
{- "aneltoAccountNumber": "string"
}
{- "value": true
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/orders/{orderId}/check-anelto-subscriber?aneltoAccountNumber=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
Unauthorized
{- "aneltoAccountNumber": "string",
- "iccid": "string",
- "imei": "string"
}
{- "value": true
}
Request's payload
Success
Unauthorized
{- "reason": 0,
- "description": "string"
}
{- "value": true
}
NOT FOR ANELTO and RRMS, there are dedicated APIs for Anelto and RRMS de-provisioning, use this for everything else
Request's payload
Success
Unauthorized
{- "reason": 0,
- "description": "string"
}
{- "value": true
}
curl -i -X GET \ 'https://orders-dev.ecg-api.com/organizations/{organizationId}/orders/{orderId}/line-items/{lineItemId}/provisioning' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "provisioningParameters": {
- "property1": "string",
- "property2": "string"
}, - "thirdPartyProvisioningInfo": {
- "provider": "anelto",
- "body": null
}
}
curl -i -X GET \ https://orders-dev.ecg-api.com/orders/deprovisioning-reason-listing \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": 0,
- "title": "string",
- "description": "string"
}
]
curl -i -X GET \ https://orders-dev.ecg-api.com/seed-data \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/sync-organizations \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/sync-people \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/clear-redis \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
curl -i -X GET \ https://orders-dev.ecg-api.com/publish-contracts \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Success
Bad Request
curl -i -X POST \ https://orders-dev.ecg-api.com/re-sync-provisioned-orders \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "value": true
}
Request's payload
Success
Bad Request
{- "organizationId": "string",
- "subscriberId": "string",
- "contractId": "string",
- "aneltoAccountNumber": "string",
- "aneltoUserName": "string",
- "aneltoPassword": "string"
}
{- "value": true
}