# CreateOrderV2 Creates a logistic order for a given process_id, customer and address. Must specify the provider and carrier to be used to create the pickup. - Returns UNIMPLEMENTED (gRPC code 12) if the provider is OPS, meaning it didn't generated any action. - Returns InvalidArgument (gRPC code 3) if the combination of return-method, providerand carrier is not supported. Endpoint: PUT /v1/processes/{process_id}/logistics/ Version: 1.0.0 ## Request fields (application/json): - `carrier` (string) Carrier to be used for generating the pickup (DHL, UPS, Correos...) kwown & available for the given provider - `customer` (object) Customer personal data - `customer.email` (string) - `customer.first_name` (string) - `customer.last_name` (string) - `customer.rever_id` (string) Unique ID in the rever platform - `customer_address` (object) Origin address of the logistic order - `customer_address.address_line_1` (string) - `customer_address.address_line_2` (string) - `customer_address.city` (string) - `customer_address.company` (string) - `customer_address.country` (string) - `customer_address.country_code` (string) - `customer_address.phone` (string) - `customer_address.postcode` (string) - `customer_address.state_province` (string) - `customer_address.state_province_code` (string) - `ecommerce_group` (string) ecommerce group - `ecommerce_id` (string) Ecommerce associated to this logistic order - `ecommerce_order_id` (string) Id of the original ecommerce order (if any) associated to this shipping - `ecommerce_warehouse_address` (object) destination address of the logistic order - `order_number` (string) Id of the original order (if any) associated to this shipping E-commerces uses this to match the original order when the package arrives to the warehouse - `pickup_ranges` (array) Pick-up time ranges. Only required for return_type = PICKUP Enum: "NO_RANGE", "RANGE_8_TO_12", "RANGE_12_TO_16", "RANGE_16_TO_20" - `process_id` (string) Id of the process that the pickup is associated to - `provider` (string) Provider to be used for generating the pickup (SendCloud, OPS, etc). - `return_type` (string) Return method associated to the logistic order (PICKUP, DROP_OFF) Enum: "NO_RETURN_METHOD", "HOME_PICK_UP", "DROP_OFF_POINT", "DELIVERY_PICKUP", "IN_STORE" - `settings` (object) deprecated - `settings.logistic_config` (array) protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED - `settings.logistic_config.carrier` (string) carrier - `settings.logistic_config.provider` (string) provider - `settings.return_method` (string) Return method associated to the logistic order (PICKUP, DROP_OFF) Enum: "NO_RETURN_METHOD", "HOME_PICK_UP", "DROP_OFF_POINT", "DELIVERY_PICKUP", "IN_STORE" - `weight_in_grams` (integer) protolint:disable:next FIELD_NAMES_EXCLUDE_PREPOSITIONS Weight of the total sum of packags in grams ## Response 200 fields (application/json): - `order` (object) logistic order created - `order.carrier` (string) - `order.currency_code` (string) - `order.id` (string) Logistic Order ID - `order.price` (integer) - `order.provider` (string) - `order.shipments` (array) - `order.shipments.created_at` (string) - `order.shipments.delivery_date` (string) - `order.shipments.from` (object) Address @Description generic address used in many scenarios @name api.Address - `order.shipments.from.address_line_1` (string) - `order.shipments.from.address_line_2` (string) - `order.shipments.from.city` (string) - `order.shipments.from.company` (string) - `order.shipments.from.country` (string) - `order.shipments.from.country_code` (string) - `order.shipments.from.email` (string) - `order.shipments.from.first_name` (string) - `order.shipments.from.last_name` (string) - `order.shipments.from.phone` (string) - `order.shipments.from.postcode` (string) - `order.shipments.from.rever_id` (string) Unique ID in the rever platform - `order.shipments.from.state_province` (string) - `order.shipments.from.state_province_code` (string) - `order.shipments.id` (string) - `order.shipments.is_without_label` (boolean) - `order.shipments.logistic_order_id` (string) - `order.shipments.packages` (array) - `order.shipments.packages.label` (string) - `order.shipments.packages.shipment_id` (string) - `order.shipments.packages.weight_in_grams` (integer) - `order.shipments.process_id` (string) - `order.shipments.shipment_type` (string) Enum: "NO_RETURN_METHOD", "HOME_PICK_UP", "DROP_OFF_POINT", "DELIVERY_PICKUP", "IN_STORE" - `order.shipments.status` (string) - `order.shipments.to` (object) Address @Description generic address used in many scenarios @name api.Address - `order.shipments.tracking_id` (string) - `order.shipments.tracking_url` (string) - `order.shipments.updated_at` (string)