# sib_ecommerce.createorder: Sendinblue Package for Ecommerce operations that could not be mapped to a table.
sib_ecommerce.createorder: Sendinblue Package for Ecommerce operations that could not be mapped to a table.
Manages the transactional status of the orderParameters of Procedure
The following parameters can be used to control the behaviour of the procedure `sib_ecommerce.createorder`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `begin package.procedure(value1, value2, value3); end` on a procedure with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `begin package.procedure(name1 => value1, name3 => value3); end` on the same procedure will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `amount` | `decimal` | ☑ | | Total amount of the order, including all shipping expenses, tax and the price of items. |
| `address` | `string` | ☐ | | Full billing address. |
| `city` | `string` | ☐ | | Exact city of the address. |
| `country` | `string` | ☐ | | Billing country name. |
| `countryCode` | `string` | ☐ | | Billing country 2-letter ISO code. |
| `paymentMethod` | `string` | ☐ | | How the visitor will pay for the item(s), e.g. paypal, check, etc. |
| `phone` | `string` | ☐ | | Billing phone number. |
| `postCode` | `string` | ☐ | | Postcode for delivery and billing. |
| `region` | `string` | ☐ | | Exact region (state/province) for delivery and billing. |
| `createdAt` | `string` | ☑ | | Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. |
| `id` | `string` | ☑ | | Unique ID of the order. |
| `email_id` | `string` | ☐ | | Email of the contact associated with the order |
| `ext_id` | `string` | ☐ | | ext_id associated with the order |
| `loyalty_subscription_id` | `string` | ☐ | | loyalty_subscription_id associated with the order |
| `phone_id` | `string` | ☐ | | Phone number of the contact associated with the order |
| `value` | `string` | ☐ | | |
| `status` | `string` | ☑ | | State of the order. |
| `storeId` | `string` | ☐ | | ID of store where the order is placed |
| `updatedAt` | `string` | ☑ | | Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. |