# Type specifications

## OrderInfo

| Property           | Type                                               | Description                                                                                                                                                              |
| ------------------ | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| MarketplaceId \*   | integer                                            | <p>The marketplace/channel where the order will be assigned.</p><p> </p><p>Please refer to marketplaces/channels list section to see the ID / codes you need to set.</p> |
| ExternalOrderId \* | string                                             | <p>The external identification number of the order.</p><p> </p><p>Is your own ID number to uniquely identify the order.</p><p> </p>                                      |
| Integrated         | boolean                                            | <p>If ¨true¨ the order will be marked “as integrated” after creation.</p><p> </p><p>Refer to mark order as integrated endpoint.</p><p> </p>                              |
| ErpStatus          | string                                             | Your internal integrated status.                                                                                                                                         |
| DateCreated \*     | datetime (UTC with local user time zone)           | <p>The original date and time when the order was created.</p><p> </p>                                                                                                    |
| Items \*           | [#orderinfoitems](#orderinfoitems "mention")       | Collection of order’s items.                                                                                                                                             |
| Buyer \*           | [#orderinfobuyer](#orderinfobuyer "mention")       | Data of the order’s buyer (buyer or customer or client).                                                                                                                 |
| Payments \*        | [#orderinfopayments](#orderinfopayments "mention") | Collection of order’s payments.                                                                                                                                          |
| Shipping \*        | [#orderinfoshipping](#orderinfoshipping "mention") | Data of the order’s shipping (shipping or delivery).                                                                                                                     |

### OrderInfoItems

| Property         | Type                                                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ---------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Product \*       | [#orderinfoitemproduct](#orderinfoitemproduct "mention") | <p>The product that corresponds to the item of the order.</p><p> </p><p>It should match a product in the product catalog. If not found, a product "disconnected" from the catalog is assumed.</p>                                                                                                                                                                                                                                                     |
| Quantity \*      | integer                                                  | The number of units of the product involved in the order item                                                                                                                                                                                                                                                                                                                                                                                         |
| StockMovement \* | boolean                                                  | <p>•When a new order is created, for each one of the items, it is possible to define whether the current inventory/stock in Alephee for that product will be updated. The “StockMovement” attribute in the items section us used for this.</p><p> </p><p>If “StockMovement” attribute is “True” Alephee will update the product’s inventory current value.</p><p> </p><p>If the attribute contains value of “False” no inventory will be updated.</p> |
| UnitPrice \*     | decimal                                                  | <p>The individual unit price product involved in the order item.</p><p> </p><p>This value may or may not match the retail price in the product catalog.</p><p> </p><p>The price indicated here takes precedence over the price that corresponds to the product in the catalog.</p><p> </p>                                                                                                                                                            |
| UnitPriceCost    | decimal                                                  | <p>The individual unit seller’s cost product involved in the order item.</p><p> </p><p>This value may or may not match the retail price in the product catalog.</p><p> </p><p>The price indicated here takes precedence over the price that corresponds to the product in the catalog.</p>                                                                                                                                                            |
| Status \*        | integer                                                  | <p>The status of the order item. Available values are:</p><p> </p><p>Confirmed = 10</p><p>Shipped = 20</p><p>Delivered = 80</p><p> </p><p>Please use the integer value.</p><p> </p>                                                                                                                                                                                                                                                                   |
| Notes            | string                                                   | Free notes for the order item.                                                                                                                                                                                                                                                                                                                                                                                                                        |

### OrderInfoItemProduct

| Property  | Type   | Description                                                                                                                                                                                                                                                      |
| --------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Brand     | string | <p>Product brand</p><p>Should match the brand in the Alephee product catalog.</p><p> </p><p>(please refer to business rules)</p>                                                                                                                                 |
| SKU \*    | string | <p>Product SKU</p><p>Should match the SKU in the Alephee product catalog.</p><p> </p><p>(please refer to business rules)</p>                                                                                                                                     |
| SellerSKU | string | <p>Product own identification code<br>Should match the “OwnCode” in the Alephee product catalog.</p><p> </p><p>(please refer to business rules)</p>                                                                                                              |
| Title \*  | string | <p>If you need to associate a product that is not existent in the Alephee catalog, complete this attribute and leave the previous attributes blank.</p><p> </p><p>An order item associated with an "offline" product will be generated with the given title.</p> |

### OrderInfoBuyer

| Property       | Type                                                     | Description                                                                                                                                                                                                                                                                                                                                                                         |
| -------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| OwnCode        | string                                                   | Your own code for the selected buyer.                                                                                                                                                                                                                                                                                                                                               |
| Name \*        | string                                                   | The name and last name of the buyer.                                                                                                                                                                                                                                                                                                                                                |
| Email          | string                                                   |                                                                                                                                                                                                                                                                                                                                                                                     |
| DocType \*     | string                                                   | <p>Identification document type.</p><p>Available document types:</p><p></p><p>Argentina: DNI, CUIT, CUIL, LC, LE, Otro.</p><p>Brazil: CPF, RG, CNPJ.</p><p>Chile: RUT, Otro.</p><p>Colombia: CC, CE, NIT, Otro.</p><p>Ecuador: CI, RUC, Otro.</p><p>México: RFC, CURP, Otro.</p><p>Perú: DNI, CE, RUC.</p><p>Uruguay: CI, RUT, Otro.</p><p>Venezuela: CI, RIF, Pasaporte, Otro.</p> |
| DocNumber \*   | string                                                   | Document number of the buyer.                                                                                                                                                                                                                                                                                                                                                       |
| Phone \*       | string                                                   | Buyer phone.                                                                                                                                                                                                                                                                                                                                                                        |
| BillingInfo \* | [#orderinfobillinginfo](#orderinfobillinginfo "mention") | Billing information data.                                                                                                                                                                                                                                                                                                                                                           |
| Address \*     | [#orderinfoaddress](#orderinfoaddress "mention")         | <p>Buyer address.</p><p> </p><p>Maybe will match the shipping address.</p>                                                                                                                                                                                                                                                                                                          |

### OrderInfoBillingInfo

| Property        | Type                                             | Description                                                                                                                                                                                                                                                                                                                                                                          |
| --------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| DocType \*      | string                                           | <p>Identification document type.</p><p>Available document types:</p><p> </p><p>Argentina: DNI, CUIT, CUIL, LC, LE, Otro.</p><p>Brazil: CPF, RG, CNPJ.</p><p>Chile: RUT, Otro.</p><p>Colombia: CC, CE, NIT, Otro.</p><p>Ecuador: CI, RUC, Otro.</p><p>México: RFC, CURP, Otro.</p><p>Perú: DNI, CE, RUC.</p><p>Uruguay: CI, RUT, Otro.</p><p>Venezuela: CI, RIF, Pasaporte, Otro.</p> |
| DocNumber \*    | string                                           | Document number of the billable buyer.                                                                                                                                                                                                                                                                                                                                               |
| TaxPayerType \* | string                                           | <p>Legal entity type (valid only for companies).</p><p>Free text.</p><p> </p>                                                                                                                                                                                                                                                                                                        |
| BusinessName    | string                                           | Legal business name (valid only for companies)                                                                                                                                                                                                                                                                                                                                       |
| Address \*      | [#orderinfoaddress](#orderinfoaddress "mention") | Address for billing purposes.                                                                                                                                                                                                                                                                                                                                                        |

### OrderInfoAddress

| Property         | Type   | Description                                                                                                                                                                                                               |
| ---------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| CountryId \*     | string | <p><a href="https://es.wikipedia.org/wiki/ISO_3166-1">ISO 3166-1 alfa-2</a></p><p>Standarized country code</p><p>AR, MX, CL, UY, PE, CO or BR</p>                                                                         |
| StateCode \*     | string | <p><a href="https://es.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a></p><p>Standarized city code</p><p> </p><p>Please note that the “State” attribute with the full name will be available on the GET order endpoint.</p> |
| City \*          | string | .                                                                                                                                                                                                                         |
| Neighborhood     | string | .                                                                                                                                                                                                                         |
| StreetName \*    | string | .                                                                                                                                                                                                                         |
| StreetNumber     | string | .                                                                                                                                                                                                                         |
| ZipCode \*       | string | .                                                                                                                                                                                                                         |
| Phone \*         | string | .                                                                                                                                                                                                                         |
| AlternativePhone | string | .                                                                                                                                                                                                                         |
| Description      | string | Free notes.                                                                                                                                                                                                               |

### OrderInfoPayments

| Property                 | Type                                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------ | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ExternalPaymentId \*     | string                                                           | <p>The external identification number of the payment.</p><p> </p><p>Is your own ID number to uniquely identify the payment.</p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Amount \*                | decimal                                                          | Paid amount (including shipping, financial charges and after any discounts, if any)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| AmountNoDiscount \*      | decimal                                                          | Paid amount before discounts (if any)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ShippingAmount           | decimal                                                          | Shipping portion of the paid amount (after discounts, if any)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ShippingAmountNoDiscount | decimal                                                          | Shipping portion of the paid amount before discounts (if any)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Installments             | integer                                                          | <p>Installment’s quantity (if any).</p><p>In general, monthly payments.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| InstallmentAmount        | decimal                                                          | Amount of each one of the installments (if any). In general, amount of each monthly payment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Taxes                    | [#orderinfopaymenttaxes](#orderinfopaymenttaxes "mention")       | <p>Taxes details</p><p> </p><p>(In general, most of the time it is blank)</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Interests                | decimal?                                                         | <p>Interests applied to the payment (if any), as reported by the marketplace.</p><p></p><p>In general, these are interest charges for credit card installment payments.</p><p></p><p><strong>The interest applied to the payment ONLY AFFECTS THE BUYER and does not affect the seller in any way.</strong></p><p></p><p>In some countries (such as Brazil), it is required to disclose the interest paid by the buyer on the electronic invoice.</p>                                                                                                                                                                                                                                                                                                                                                |
| Discounts                | [#orderinfopaymentdiscount](#orderinfopaymentdiscount "mention") | <p>Discount collection details.</p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Method                   | integer                                                          | <p>The method used in the payment. Available values are:</p><p> </p><p>Account\_money = 0,</p><p>//Money in the MercadoPago account</p><p> </p><p>Ticket = 1 </p><p>//Printed ticket</p><p> </p><p>Bank\_transfer = 2 </p><p>//Wire transfer</p><p> </p><p>Atm = 3 </p><p>//Payment by ATM</p><p> </p><p>Credit\_card = 4 </p><p>//Payment by credit card</p><p> </p><p>Debit\_card = 5 </p><p>//Payment by debit card</p><p> </p><p>Prepaid\_card = 6 </p><p>//Payment by prepaid card</p><p> </p><p>Digital\_currency = 7</p><p> </p><p>Digital\_wallet = 8 </p><p> </p><p>Cash = 99</p><p>//Cash</p><p> </p><p>Please use the integer value.</p>                                                                                                                                                  |
| Status \*                | integer                                                          | <p>The status of the payment. Available values are:</p><p> </p><p>pending = 0</p><p>//El usuario aún no completó el proceso de pago</p><p> </p><p>approved = 1</p><p>//El pago fue aprobado y acreditado</p><p> </p><p>in\_process = 2  </p><p>// El pago está siendo revisado.</p><p> </p><p>in\_mediation = 3</p><p>//Los usuarios tienen iniciada una disputa</p><p> </p><p>rejected = 4</p><p>// El pago fue rechazado. El usuario puede intentar pagar nuevamente.</p><p> </p><p>cancelled = 5</p><p>//El pago fue cancelado por una de las partes, o porque el tiempo expiró</p><p> </p><p>refunded = 6</p><p>// El pago fue devuelto al usuario.</p><p> </p><p>charged\_back = 7</p><p>// Fue hecho un contracargo en la tarjeta del pagador.<br><br></p><p>Please use the integer value.</p> |
| DateCreated \*           | datetime (UTC with local user time zone)                         | Informational only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| DateApproved \*          | datetime (UTC with local user time zone)                         | Informational only.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Notes                    | string                                                           | Free notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

.OrderInfoPaymentTaxes

| Property | Type    | Description                                   |
| -------- | ------- | --------------------------------------------- |
| Amount   | decimal | The amount of taxing involved in the payment. |

### OrderInfoPaymentDiscount

| Property  | Type    | Description                                                                                                                                                                           |
| --------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Code\*    | string  | <p>The given discount code type for the applied discount. Available values are:<br></p><p>• Coupon <br>• Discount <br>• Cashback<br>• Voucher <br>• Redeem </p>                       |
| Type\*    | string  | <p>The discount value type. Allowed values are:<br></p><p>• Value (single amount) <br>• Percentage</p>                                                                                |
| Amount \* | decimal | <p>The monetary amount of the applied discount.<br></p><p>• Positive decimal numbers means a discount. <br>• Negative decimal numbers means a surcharge/recharge.</p><p> </p>         |
| Value \*  | decimal | <p>The amount of the discount, depending on the “type” value type.<br><br>• Positive decimal numbers means a discount. <br>• Negative decimal numbers means a surcharge/recharge.</p> |
| Priority  | string  | The order of priority in which the discount should be applied                                                                                                                         |
| Notes     | string  | Free notes                                                                                                                                                                            |

### OrderInfoShipping

| Property                 | Type                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------ | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ExternalShippingId \*    | integer                                                                                         | <p>The external identification number of the shipping.</p><p> </p><p>Is your own ID number to uniquely identify the shipping.</p><p> </p>                                                                                                                                                                                                                                                                      |
| Method \*                | integer                                                                                         | <p>The method used for the order shipping. Available values are:</p><p> </p><p>AgreementWithSeller = 0</p><p>//Seller and buyer agreed where to ship the package</p><p> </p><p>Pickup withdraw = 2</p><p>//The buyer picks up the order at the seller's branch or pickup point</p><p> </p><p>Normal Shipping = 4</p><p>//Normal shipping to a selected address</p><p> </p><p>Please use the integer value.</p> |
| LogisticType \*          | integer                                                                                         | <p>The logistics type of the order shipping. Available values are:</p><p> </p><p>To\_be\_agreed = 1</p><p>ME1 = 2</p><p>ME2 = 3</p><p>Custom = 4</p><p>Fulfillment = 5</p><p>Flex = 6  </p><p>Pickup = 7</p><p>Cross\_docking = 8</p><p>Courier = 14</p><p> </p><p>Please use the integer value.</p>                                                                                                           |
| CourierInfo \*\*         | [#orderinfocourier](#orderinfocourier "mention")                                                | <p>The courier that collects and delivers the order.</p><p> </p><p>Mandatory only if the LogisticType attribute is set to value “14”.</p><p> </p>                                                                                                                                                                                                                                                              |
| Cost                     | [#orderinfoshippingcost](#orderinfoshippingcost "mention")                                      | <p>The shipping costs (if any) of the order.</p><p> </p>                                                                                                                                                                                                                                                                                                                                                       |
| Receiver \*\*            | <p><a data-mention href="#orderinfoshippingreceiver">#orderinfoshippingreceiver</a></p><p> </p> | <p>Receiver data and address.</p><p> </p><p>Always mandatory except if the <em>Method</em> attribute is set to value “2”.</p><p> </p>                                                                                                                                                                                                                                                                          |
| Pickup \*\*              | [#orderinfoshippingpickup](#orderinfoshippingpickup "mention")                                  | <p>The pickup or branch information where the buyer will withdraw the package.</p><p> </p><p>Mandatory only if the <em>Method</em> attribute is set to value “2”.</p><p> </p>                                                                                                                                                                                                                                  |
| EstimatedDeliveryDate \* | datetime (UTC with local user time zone)                                                        | Informational only.                                                                                                                                                                                                                                                                                                                                                                                            |
| DateCreated \*           | datetime (UTC with local user time zone)                                                        | Informational only.                                                                                                                                                                                                                                                                                                                                                                                            |

### OrderInfoCourier

| Property        | Type                                             | Description                                                                                                                                                                                                                                                                                                                                                                         |
| --------------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| BusinessName \* | string                                           | Legal business name                                                                                                                                                                                                                                                                                                                                                                 |
| DocType         | string                                           | <p>Identification document type.</p><p>Available document types:</p><p></p><p>Argentina: DNI, CUIT, CUIL, LC, LE, Otro.</p><p>Brazil: CPF, RG, CNPJ.</p><p>Chile: RUT, Otro.</p><p>Colombia: CC, CE, NIT, Otro.</p><p>Ecuador: CI, RUC, Otro.</p><p>México: RFC, CURP, Otro.</p><p>Perú: DNI, CE, RUC.</p><p>Uruguay: CI, RUT, Otro.</p><p>Venezuela: CI, RIF, Pasaporte, Otro.</p> |
| DocNumber       | string                                           | Document number of the courier.                                                                                                                                                                                                                                                                                                                                                     |
| LegalNumber     | string                                           | Legal inscription number of the courier.                                                                                                                                                                                                                                                                                                                                            |
| OwnCode         | string                                           | The courier’s internal CODE (if any) that matches the code in the user's ERP.                                                                                                                                                                                                                                                                                                       |
| Address         | [#orderinfoaddress](#orderinfoaddress "mention") | Address of the courier                                                                                                                                                                                                                                                                                                                                                              |

### OrderInfoShippingCost

| Property    | Type    | Description                                                                                                                                                   |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Seller \*   | decimal | <p>The shipping cost (if any) that the seller of the order should pay.</p><p> </p><p>If none, set this property to 0.00 (zero).</p>                           |
| Receiver \* | decimal | <p>The shipping cost (if any) that the receiver/buyer of the order should pay.</p><p> </p><p>If none, set this property to 0.00 (zero).</p>                   |
| Total \*    | decimal | <p>Total and complete shipping cost (if any) of the order. Should match seller + receiver costs.</p><p> </p><p>If none, set this property to 0.00 (zero).</p> |

### OrderInfoShippingReceiver

| Property | Type                                             | Description                                              |
| -------- | ------------------------------------------------ | -------------------------------------------------------- |
| Name \*  | string                                           | The name and last name of the receiver of the order.     |
| Phone    | string                                           | The phone number of the receiver of the order.           |
| Address  | [#orderinfoaddress](#orderinfoaddress "mention") | The receiver address. The location to deliver the order. |

### OrderInfoShippingPickup

| Property     | Type    | Description                                                                                                                                                                                     |
| ------------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Id \*        | integer | <p>The ID number of the pickup point. Should match Alephee internal ID of the pickup list for the given account.</p><p> </p><p>Use the GET stores endpoint to find the ID for every pickup.</p> |
| Name         | string  | Name of the pickup point. Informational only.                                                                                                                                                   |
| BusinessName | string  | BusinessName of the pickup point. Informational only.                                                                                                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.alephee.com/v2/orders/post-methods/create-a-new-order/response.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
