Order Update API Payload and examples
| Field | Mandatory? | Description |
|---|---|---|
| merchant | Yes | Fields describing the merchant. |
| .id | Yes | Merchant identifier. Also called merchant_ref. Example: "s1". (string or int) |
| merchant_reference | Yes | Order id(s) used by the merchant |
| .order_ref_1 | Yes | Merchant reference 1. Example: "ZXCV1234". (string or int) |
| .order_ref_2 | No | Merchant reference 2. Example: "0080-1234-4343-5353". (string or int) |
| .subscription_ref_1 | No | Subscription reference 1. Example: "SUBS00001". (string or int) |
| unshipped_cart | Yes | Fields describing the unshipped items. |
| .currency | Yes | Currency code for all money amounts. Example: "EUR". (string) |
| .order_total_with_tax | Yes | Total value with tax of the items listed below. Example: 6097. (int) |
| .items | Yes | List of unshipped items in the order. The list can contain zero or more instances of each item type. (list) |
| The lines starting with unshipped_cart.items.0 describe the API when unshipped_cart.items.0.type is 'product' or missing. | ||
| .items.0.reference | Yes | A public product id for this item. Example: "12-123-1234". (string or int) |
| .items.0.name | Yes | A description to include in the payment instructions. Example: "Leather Case (iPod nano) - Negro / Chocolate". (string) |
| .items.0.price_with_tax | Yes | Price with tax for one item. Example: 3030. (int) |
| .items.0.quantity | Yes | The number of items ordered by the shopper. Example: 2. (positive int) |
| .items.0.subscription_period | No | Subscription period of item in months. Example: 24. (positive int) |
| .items.0.subscription_price_per_item | No | Subscription cost per month per item. Example: 500. (positive int) |
| .items.0.subscription_price | No | Total subscription cost per month (subscription_price_per_item * quantity) Example: 1000. (positive int) |
| .items.0.subscription_vat_rate | No | VAT rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (positive int) |
| .items.0.total_with_tax | Yes | Price with tax for the amount in the order. Due to rounding, this might not be exactly quantity × price_with_tax. Example: 6060. (int) |
| .items.0.downloadable | Yes | Can the buyer access or consume the product without a physical delivery? PDFs, e-tickets, software, etc are downloadable. Example: false. (true or false) |
| .items.0.perishable | No | A product is perishable if it loses its value if it is not delivered on time. Examples are fresh fruit and physical tickets. Example: false. (true or false) |
| .items.0.personalized | No | A product is personalized if it is irreversibly customized in a way that makes it less appealing to most people other than the buyer. Example: false. (true or false) |
| .items.0.restockable | No | A product is restockable if it can be sold to someone else if returned in good condition. Foodstuff is generally not restockable. Example: true. (true or false) |
| .items.0.category | No | Name of category. Will not be shown to shopper. Useful against fraud. Example: "ipod-accesorios". (string) |
| .items.0.description | No | Product description. Will not be shown to shopper. Useful against fraud. Example: "Este estuche de cuero de última moda ...". (string) |
| .items.0.manufacturer | No | Name of manufacturer. Will not be shown to shopper. Useful against fraud. Example: "Apple". (string) |
| .items.0.supplier | No | Name of supplier or provider. Will not be shown to shopper. Useful against fraud. Example: "Mayorista Makro". (string) |
| .items.0.product_id | No | Id from database. Will not be shown to shopper. Sometimes useful if 'reference' varies too much over time. Example: "6". (string or int) |
| .items.0.url | No | Product page URL in your shop. Might be shown to shopper. Useful for customer service. Example: "http://shop.example.com/ipod-accesorios/leather-case". (string) |
| .items.0.tracking_reference | No | A reference to the tracking in which this item will be handed. Example: "first". (string) |
| The lines starting with unshipped_cart.items.1 describe the API when unshipped_cart.items.1.type is 'handling'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.1.reference | Yes | A unique code that refers to this item. Does not have to exist in the shop catalogue. Example: "seur24". (string or int) |
| .items.1.name | Yes | A name to describe this item. More specific is better, i.e. prefer 'Correos' to 'Envío'. Example: "SEUR entrega en 24 horas". (string) |
| .items.1.total_with_tax | Yes | Price with tax for this handling service. Example: 242. (int) |
| The lines starting with unshipped_cart.items.2 describe the API when unshipped_cart.items.2.type is 'invoice_fee'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.2.total_with_tax | Yes | Price with tax for the invoice (i1) service. Do not use with product codes other than i1. Example: 295. (int) |
| The lines starting with unshipped_cart.items.3 describe the API when unshipped_cart.items.3.type is 'discount'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.3.reference | Yes | A unique code that refers to this discount. Can be the discount code. Example: "HALFOFF". (string or int) |
| .items.3.name | Yes | A name to describe this discount. Might be displayed in the payment instructions. Example: "50 % off the full basket!". (string) |
| .items.3.total_with_tax | Yes | Amount that this discount changes the cart value with tax. Should be negative. Example: -750. (negative int) |
| The lines starting with unshipped_cart.items.4 describe the API when unshipped_cart.items.4.type is 'other_payment'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.4.reference | Yes | A code that refers to this "other" payment. (An "other" payment means that the shopper " \ "has paid part of the cart using some other means of payment, like cash or credit card.) Example: "CASH". (string or int) |
| .items.4.name | Yes | A name to describe this payment. Example: "Paid in cash". (string) |
| .items.4.total_with_tax | Yes | Amount that this payment changes the cart value with tax. Should use opposite sign of any item it pays for. Example: -750. (int) |
| The lines starting with unshipped_cart.items.5 describe the API when unshipped_cart.items.5.type is 'voucher'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.5.reference | Yes | A code that refers to this voucher. Can be the voucher code. Example: "NoCashBack". (string or int) |
| .items.5.name | Yes | A text to describe this voucher. Might be displayed in the payment instructions. Example: "A voucher for your non-shipped items". (string) |
| .items.5.total_with_tax | Yes | Amount that this voucher changes the cart value with tax. Example: 1000. (int) |
| The lines starting with unshipped_cart.items.7 describe the API when unshipped_cart.items.7.type is 'flight'. | ||
| .items.7.reference | Yes | A reference, without spaces, for this flight reservation. Example: "ASDF345345". (string) |
| .items.7.name | Yes | A short text to describe this flight. Might be displayed in the payment instructions. Example: "Vueling Barcelona--New York". (string) |
| .items.7.description | No | Flight description. Example: "Vueling BCN Barcelona - NYC New York". (string) |
| .items.7.departure_date | Yes | Departure date for the flight. Example: "2017-06-30". (ISO8601 formatted date) |
| .items.7.destination_date | No | Destination date for the flight. Example: "2002-12-23T12:00:00+01:00". (ISO8601 formatted date or ISO8601 formatted timestamp) |
| .items.7.total_with_tax | Yes | Price with tax for the flight. Example: 75020. (positive int) |
| .items.7.downloadable | Yes | True if the ticket(s) are delivered electronically. Example: true. (true or false) |
| .items.7.iata_carrier_code | Yes | IATA code of carrier. Example: "VY". (string) |
| .items.7.iata_departure_code | Yes | Departure airport code. Example: "BCN". (string) |
| .items.7.iata_destination_code | Yes | Destination airport code. For round trips, indicate a relevant destination, not the final destination (which is the same as the departure airport). Example: "JFK". (string) |
| .items.7.country_departure_code | No | Country departure code. Example: "ESP". (string) |
| .items.7.country_destination_code | No | Country destination code. Example: "ESP". (string) |
| .items.7.customer_travel_insurance | No | If true, customer has travel insurance. Example: true. (true or false) |
| .items.7.customer_loyalty_card | No | Customer loyalty card number Example: "94859034". (string) |
| .items.7.customer_card_level | No | Customer card level Example: "gold". (string) |
| .items.7.customer_member_since | No | Customer member since. Example: "2002-12-23T12:00:00+01:00". (ISO8601 formatted timestamp) |
| .items.7.url | No | Url Example: "https://tickets.vueling.com/CampaignPage.aspx?flow=SB&step=select&culture=es-ES&adt=2&chd=0&infant=0&Currency=EUR&marketstructure=RoundTrip". (string) |
| .items.7.segments | Yes | List of flight segments. (list) |
| .items.7.segments.0.iata_departure_code | Yes | Departure airport code. Example: "BCN". (string) |
| .items.7.segments.0.iata_destination_code | Yes | Destination airport code. Example: "AMS". (string) |
| .items.7.segments.0.departure_time | No | Departure date&time for the flight. Example: "2017-06-30T13:50:00+02:00". (ISO8601 formatted timestamp) |
| .items.7.segments.0.destination_time | No | Destination date&time for the flight. Example: "2017-06-30T13:50:00+02:00". (ISO8601 formatted timestamp) |
| .items.7.segments.0.iata_carrier_code | No | IATA code of carrier. Example: "VY". (string) |
| .items.7.segments.0.iata_flight_code | No | IATA code of flight leg. Example: "VY1234". (string) |
| .items.7.segments.0.cabin_class | No | Cabin class Example: "priority". (string) |
| .items.7.segments.0.rbd | No | Reservation Booking Designator Example: "A". (string) |
| .items.7.segments.0.fare_basis | No | Fare basis code. It indicates what contract applies to your ticket. Example: "ADNOU3Z1". (string) |
| .items.7.segments.0.ancillaries | No | Ancillaries. True if the ticket has optinonal services Example: true. (true or false) |
| .items.7.pax | Yes | List of passenger names. (list) |
| .items.7.pax.0.given_names | Yes | Passenger given names. Example: "Maria José". (string) |
| .items.7.pax.0.surnames | Yes | Passenger surnames. Example: "Barroso Rajoy". (string) |
| .items.7.pax.0.title | No | Passenger title and/or gender. Use the one of 'mr', 'ms', 'mrs', 'miss' or 'mx' that is closest to the information supplied by the customer. If none of these can be inferred, use the title that the customer entered as-is. See also 'Note about title' in the docs. Example: "mrs". (string) |
| .items.7.pax.0.sex | No | Passenger sex. Use 'M' for male and 'F' for female Example: "F". (string) |
| .items.7.pax.0.date_of_birth | No | Passenger date of birth in ISO-8601 format. Example: "1980-01-20". (ISO8601 formatted date) |
| .items.7.pax.0.age_class | No | Use an age category like 'adult', 'child', 'infant' or an age range in format 'lo-hi' or 'lo+' (where 'hi' has to be inclusive): '0-2', '2-14', '14+'. Example: "18+". (string) |
| .items.7.pax.0.nationality | No | Passenger nationality country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| .items.7.pax.0.identity_documentation | No | Fields that fully identify a national identification document. |
| .items.7.pax.0.identity_documentation.number | Yes | Passenger's identity document number. Example: "PB103009". (string) |
| .items.7.pax.0.identity_documentation.type | No | Passenger's identity document type. Example: "Passport". (string) |
| .items.7.pax.0.identity_documentation.country_code | No | Passenger's identity document country. Example: "ES". (ISO-3166 alpha-2/3 code) |
| The lines starting with unshipped_cart.items.8 describe the API when unshipped_cart.items.8.type is 'lodging'. | ||
| .items.8.reference | Yes | A reference, without spaces, for this lodging reservation. Example: "ASDF345345". (string) |
| .items.8.name | Yes | A short text to describe this lodging. Might be displayed in the payment instructions. Example: "Hotel Chaplin, 5 nights". (string) |
| .items.8.checkin_date | Yes | Check-in date for the lodging. Example: "2017-06-30". (ISO8601 formatted date) |
| .items.8.checkout_date | Yes | Check-out date for the lodging. Example: "2017-07-02". (ISO8601 formatted date) |
| .items.8.total_with_tax | Yes | Price with tax for the lodging. Example: 75020. (positive int) |
| .items.8.downloadable | Yes | True if the ticket(s) are delivered electronically. Example: true. (true or false) |
| .items.8.capacity | No | Number of persons who could stay at the lodging. Example: 4. (positive int) |
| .items.8.establishment_name | Yes | The name of the hotel, hostel, etc Example: "Hotel California". (string) |
| .items.8.address_line_1 | No | Address line 1. Example: "1600 Pennsylvania Avenue". (string) |
| .items.8.address_line_2 | No | Address line 2. Example: "5º". (string) |
| .items.8.postal_code | No | Postal code. Example: "08013". (string) |
| .items.8.city | Yes | City. Example: "Barcelona". (string) |
| .items.8.state | No | State or region. Example: "Barcelona". (string) |
| .items.8.country_code | Yes | Country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| .items.8.coordinates | No | Geo coordinates according to a specified datum. |
| .items.8.coordinates.datum | Yes | The datum for the coordinates. Currently only WGS84 is recognised—please contact us if you have coordinates in another datum. Example: "WGS84". (string) |
| .items.8.coordinates.lat_lng | Yes | Coordinate pair for the lodging (in the specified datum). Example: [1.2948883,103.8543904]. (list of latitude and longitude) |
| .items.8.url | No | Homepage of lodging. For hotel chains, prefer direct link to establishment rather than global homepage. Example: "http://www.starwoodhotels.com/whotels/property/overview/index.html?language=en_US&propertyID=3183". (a URL string) |
| The lines starting with unshipped_cart.items.10 describe the API when unshipped_cart.items.10.type is 'subscriber_fee'. | ||
| .items.10.reference | No | A public product id for this item. Example: "12-123-1234". (string or int) |
| .items.10.name | Yes | A description to include in the payment instructions. Example: "Subscription fee". (string) |
| .items.10.price_with_tax | No | Price with tax for one item. Example: 3030. (int) |
| .items.10.quantity | No | The number of items ordered by the shopper. Example: 2. (positive int) |
| .items.10.subscription_period | No | Subscription period of item in months. Example: 24. (positive int) |
| .items.10.subscription_price_per_item | No | Subscription cost per month per item. Example: 500. (positive int) |
| .items.10.subscription_price | No | Total subscription cost per month (subscription_price_per_item * quantity) Example: 1000. (positive int) |
| .items.10.subscription_vat_rate | No | VAT rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (positive int) |
| .items.10.total_with_tax | Yes | Price with tax for the amount in the order. Due to rounding, this might not be exactly quantity × price_with_tax. Example: 6060. (int) |
| shipped_cart | Yes | Fields describing the shipped items. |
| .currency | Yes | Currency code for all money amounts. Example: "EUR". (string) |
| .order_total_with_tax | Yes | Total value with tax of the items listed below. Example: 6097. (int) |
| .items | Yes | List of shipped items in the order. The list can contain zero or more instances of each item type. (list) |
| The lines starting with shipped_cart.items.0 describe the API when shipped_cart.items.0.type is 'product' or missing. | ||
| .items.0.reference | Yes | A public product id for this item. Example: "12-123-1234". (string or int) |
| .items.0.name | Yes | A description to include in the payment instructions. Example: "Leather Case (iPod nano) - Negro / Chocolate". (string) |
| .items.0.price_with_tax | Yes | Price with tax for one item. Example: 3030. (int) |
| .items.0.quantity | Yes | The number of items ordered by the shopper. Example: 2. (positive int) |
| .items.0.subscription_period | No | Subscription period of item in months. Example: 24. (positive int) |
| .items.0.subscription_price_per_item | No | Subscription cost per month per item. Example: 500. (positive int) |
| .items.0.subscription_price | No | Total subscription cost per month (subscription_price_per_item * quantity) Example: 1000. (positive int) |
| .items.0.subscription_vat_rate | No | VAT rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (positive int) |
| .items.0.total_with_tax | Yes | Price with tax for the amount in the order. Due to rounding, this might not be exactly quantity × price_with_tax. Example: 6060. (int) |
| .items.0.downloadable | Yes | Can the buyer access or consume the product without a physical delivery? PDFs, e-tickets, software, etc are downloadable. Example: false. (true or false) |
| .items.0.perishable | No | A product is perishable if it loses its value if it is not delivered on time. Examples are fresh fruit and physical tickets. Example: false. (true or false) |
| .items.0.personalized | No | A product is personalized if it is irreversibly customized in a way that makes it less appealing to most people other than the buyer. Example: false. (true or false) |
| .items.0.restockable | No | A product is restockable if it can be sold to someone else if returned in good condition. Foodstuff is generally not restockable. Example: true. (true or false) |
| .items.0.category | No | Name of category. Will not be shown to shopper. Useful against fraud. Example: "ipod-accesorios". (string) |
| .items.0.description | No | Product description. Will not be shown to shopper. Useful against fraud. Example: "Este estuche de cuero de última moda ...". (string) |
| .items.0.manufacturer | No | Name of manufacturer. Will not be shown to shopper. Useful against fraud. Example: "Apple". (string) |
| .items.0.supplier | No | Name of supplier or provider. Will not be shown to shopper. Useful against fraud. Example: "Mayorista Makro". (string) |
| .items.0.product_id | No | Id from database. Will not be shown to shopper. Sometimes useful if 'reference' varies too much over time. Example: "6". (string or int) |
| .items.0.url | No | Product page URL in your shop. Might be shown to shopper. Useful for customer service. Example: "http://shop.example.com/ipod-accesorios/leather-case". (string) |
| .items.0.tracking_reference | No | A reference to the tracking in which this item will be handed. Example: "first". (string) |
| The lines starting with shipped_cart.items.1 describe the API when shipped_cart.items.1.type is 'handling'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.1.reference | Yes | A unique code that refers to this item. Does not have to exist in the shop catalogue. Example: "seur24". (string or int) |
| .items.1.name | Yes | A name to describe this item. More specific is better, i.e. prefer 'Correos' to 'Envío'. Example: "SEUR entrega en 24 horas". (string) |
| .items.1.total_with_tax | Yes | Price with tax for this handling service. Example: 242. (int) |
| The lines starting with shipped_cart.items.2 describe the API when shipped_cart.items.2.type is 'invoice_fee'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.2.total_with_tax | Yes | Price with tax for the invoice (i1) service. Do not use with product codes other than i1. Example: 295. (int) |
| The lines starting with shipped_cart.items.3 describe the API when shipped_cart.items.3.type is 'discount'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.3.reference | Yes | A unique code that refers to this discount. Can be the discount code. Example: "HALFOFF". (string or int) |
| .items.3.name | Yes | A name to describe this discount. Might be displayed in the payment instructions. Example: "50 % off the full basket!". (string) |
| .items.3.total_with_tax | Yes | Amount that this discount changes the cart value with tax. Should be negative. Example: -750. (int) |
| The lines starting with shipped_cart.items.4 describe the API when shipped_cart.items.4.type is 'other_payment'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.4.reference | Yes | A code that refers to this "other" payment. (An "other" payment means that the shopper " \ "has paid part of the cart using some other means of payment, like cash or credit card.) Example: "CASH". (string or int) |
| .items.4.name | Yes | A name to describe this payment. Example: "Paid in cash". (string) |
| .items.4.total_with_tax | Yes | Amount that this payment changes the cart value with tax. Should use opposite sign of any item it pays for. Example: -750. (int) |
| The lines starting with shipped_cart.items.5 describe the API when shipped_cart.items.5.type is 'voucher'. Note that keys "quantity" and "price_with_tax" are not allowed in this section. |
||
| .items.5.reference | Yes | A code that refers to this voucher. Can be the voucher code. Example: "NoCashBack". (string or int) |
| .items.5.name | Yes | A text to describe this voucher. Might be displayed in the payment instructions. Example: "A voucher for your non-shipped items". (string) |
| .items.5.total_with_tax | Yes | Amount that this voucher changes the cart value with tax. Example: 1000. (int) |
| The lines starting with shipped_cart.items.7 describe the API when shipped_cart.items.7.type is 'flight'. | ||
| .items.7.reference | Yes | A reference, without spaces, for this flight reservation. Example: "ASDF345345". (string) |
| .items.7.name | Yes | A short text to describe this flight. Might be displayed in the payment instructions. Example: "Vueling Barcelona--New York". (string) |
| .items.7.description | No | Flight description. Example: "Vueling BCN Barcelona - NYC New York". (string) |
| .items.7.departure_date | Yes | Departure date for the flight. Example: "2017-06-30". (ISO8601 formatted date) |
| .items.7.destination_date | No | Destination date for the flight. Example: "2002-12-23T12:00:00+01:00". (ISO8601 formatted date or ISO8601 formatted timestamp) |
| .items.7.total_with_tax | Yes | Price with tax for the flight. Example: 75020. (positive int) |
| .items.7.downloadable | Yes | True if the ticket(s) are delivered electronically. Example: true. (true or false) |
| .items.7.iata_carrier_code | Yes | IATA code of carrier. Example: "VY". (string) |
| .items.7.iata_departure_code | Yes | Departure airport code. Example: "BCN". (string) |
| .items.7.iata_destination_code | Yes | Destination airport code. For round trips, indicate a relevant destination, not the final destination (which is the same as the departure airport). Example: "JFK". (string) |
| .items.7.country_departure_code | No | Country departure code. Example: "ESP". (string) |
| .items.7.country_destination_code | No | Country destination code. Example: "ESP". (string) |
| .items.7.customer_travel_insurance | No | If true, customer has travel insurance. Example: true. (true or false) |
| .items.7.customer_loyalty_card | No | Customer loyalty card number Example: "94859034". (string) |
| .items.7.customer_card_level | No | Customer card level Example: "gold". (string) |
| .items.7.customer_member_since | No | Customer member since. Example: "2002-12-23T12:00:00+01:00". (ISO8601 formatted timestamp) |
| .items.7.url | No | Url Example: "https://tickets.vueling.com/CampaignPage.aspx?flow=SB&step=select&culture=es-ES&adt=2&chd=0&infant=0&Currency=EUR&marketstructure=RoundTrip". (string) |
| .items.7.segments | Yes | List of flight segments. (list) |
| .items.7.segments.0.iata_departure_code | Yes | Departure airport code. Example: "BCN". (string) |
| .items.7.segments.0.iata_destination_code | Yes | Destination airport code. Example: "AMS". (string) |
| .items.7.segments.0.departure_time | No | Departure date&time for the flight. Example: "2017-06-30T13:50:00+02:00". (ISO8601 formatted timestamp) |
| .items.7.segments.0.destination_time | No | Destination date&time for the flight. Example: "2017-06-30T13:50:00+02:00". (ISO8601 formatted timestamp) |
| .items.7.segments.0.iata_carrier_code | No | IATA code of carrier. Example: "VY". (string) |
| .items.7.segments.0.iata_flight_code | No | IATA code of flight leg. Example: "VY1234". (string) |
| .items.7.segments.0.cabin_class | No | Cabin class Example: "priority". (string) |
| .items.7.segments.0.rbd | No | Reservation Booking Designator Example: "A". (string) |
| .items.7.segments.0.fare_basis | No | Fare basis code. It indicates what contract applies to your ticket. Example: "ADNOU3Z1". (string) |
| .items.7.segments.0.ancillaries | No | Ancillaries. True if the ticket has optinonal services Example: true. (true or false) |
| .items.7.pax | Yes | List of passenger names. (list) |
| .items.7.pax.0.given_names | Yes | Passenger given names. Example: "Maria José". (string) |
| .items.7.pax.0.surnames | Yes | Passenger surnames. Example: "Barroso Rajoy". (string) |
| .items.7.pax.0.title | No | Passenger title and/or gender. Use the one of 'mr', 'ms', 'mrs', 'miss' or 'mx' that is closest to the information supplied by the customer. If none of these can be inferred, use the title that the customer entered as-is. See also 'Note about title' in the docs. Example: "mrs". (string) |
| .items.7.pax.0.sex | No | Passenger sex. Use 'M' for male and 'F' for female Example: "F". (string) |
| .items.7.pax.0.date_of_birth | No | Passenger date of birth in ISO-8601 format. Example: "1980-01-20". (ISO8601 formatted date) |
| .items.7.pax.0.age_class | No | Use an age category like 'adult', 'child', 'infant' or an age range in format 'lo-hi' or 'lo+' (where 'hi' has to be inclusive): '0-2', '2-14', '14+'. Example: "18+". (string) |
| .items.7.pax.0.nationality | No | Passenger nationality country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| .items.7.pax.0.identity_documentation | No | Fields that fully identify a national identification document. |
| .items.7.pax.0.identity_documentation.number | Yes | Passenger's identity document number. Example: "PB103009". (string) |
| .items.7.pax.0.identity_documentation.type | No | Passenger's identity document type. Example: "Passport". (string) |
| .items.7.pax.0.identity_documentation.country_code | No | Passenger's identity document country. Example: "ES". (ISO-3166 alpha-2/3 code) |
| The lines starting with shipped_cart.items.8 describe the API when shipped_cart.items.8.type is 'lodging'. | ||
| .items.8.reference | Yes | A reference, without spaces, for this lodging reservation. Example: "ASDF345345". (string) |
| .items.8.name | Yes | A short text to describe this lodging. Might be displayed in the payment instructions. Example: "Hotel Chaplin, 5 nights". (string) |
| .items.8.checkin_date | Yes | Check-in date for the lodging. Example: "2017-06-30". (ISO8601 formatted date) |
| .items.8.checkout_date | Yes | Check-out date for the lodging. Example: "2017-07-02". (ISO8601 formatted date) |
| .items.8.total_with_tax | Yes | Price with tax for the lodging. Example: 75020. (positive int) |
| .items.8.downloadable | Yes | True if the ticket(s) are delivered electronically. Example: true. (true or false) |
| .items.8.capacity | No | Number of persons who could stay at the lodging. Example: 4. (positive int) |
| .items.8.establishment_name | Yes | The name of the hotel, hostel, etc Example: "Hotel California". (string) |
| .items.8.address_line_1 | No | Address line 1. Example: "1600 Pennsylvania Avenue". (string) |
| .items.8.address_line_2 | No | Address line 2. Example: "5º". (string) |
| .items.8.postal_code | No | Postal code. Example: "08013". (string) |
| .items.8.city | Yes | City. Example: "Barcelona". (string) |
| .items.8.state | No | State or region. Example: "Barcelona". (string) |
| .items.8.country_code | Yes | Country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| .items.8.coordinates | No | Geo coordinates according to a specified datum. |
| .items.8.coordinates.datum | Yes | The datum for the coordinates. Currently only WGS84 is recognised—please contact us if you have coordinates in another datum. Example: "WGS84". (string) |
| .items.8.coordinates.lat_lng | Yes | Coordinate pair for the lodging (in the specified datum). Example: [1.2948883,103.8543904]. (list of latitude and longitude) |
| .items.8.url | No | Homepage of lodging. For hotel chains, prefer direct link to establishment rather than global homepage. Example: "http://www.starwoodhotels.com/whotels/property/overview/index.html?language=en_US&propertyID=3183". (a URL string) |
| The lines starting with shipped_cart.items.10 describe the API when shipped_cart.items.10.type is 'subscriber_fee'. | ||
| .items.10.reference | No | A public product id for this item. Example: "12-123-1234". (string or int) |
| .items.10.name | Yes | A description to include in the payment instructions. Example: "Subscription fee". (string) |
| .items.10.price_with_tax | No | Price with tax for one item. Example: 3030. (int) |
| .items.10.quantity | No | The number of items ordered by the shopper. Example: 2. (positive int) |
| .items.10.subscription_period | No | Subscription period of item in months. Example: 24. (positive int) |
| .items.10.subscription_price_per_item | No | Subscription cost per month per item. Example: 500. (positive int) |
| .items.10.subscription_price | No | Total subscription cost per month (subscription_price_per_item * quantity) Example: 1000. (positive int) |
| .items.10.subscription_vat_rate | No | VAT rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (positive int) |
| .items.10.total_with_tax | Yes | Price with tax for the amount in the order. Due to rounding, this might not be exactly quantity × price_with_tax. Example: 6060. (int) |
| cancellation_reason | No | String containing the cancellation reason when clearing an order. Allowed values are 'change' (indicating customer wants to change the order), 'change_payment_method' (indicating customer wants to change payment method), customer_cancel' (indicating customer wants to cancel the order), 'out_of_stock' (indicating shop cannot fulfill order) and 'other'. Example: "customer_cancel". (string or null) |
| trackings | No | A list of trackings for the order. |
| The lines starting with trackings.0 describe the API when trackings.0.type is 'pickup_store'. | ||
| .0.reference | Yes | Internal tracking reference. Example: "first". (string) |
| .0.operator_ref | No | Permanent identifier for the operator that handed the delivery. Example: "123-009". (string) |
| .0.store_ref | No | Permanent identifier for the store that handled this delivery. Example: "maquinista". (string) |
| .0.tracking_number | No | Tracking number. Example: "AB331". (string) |
| .0.available_at | No | When this delivery was available in the store. Example: "2014-02-05T13:21:22+01:00". (ISO8601 formatted timestamp) |
| .0.delivered_at | No | When this delivery was handed. When set, the delivey is considered to be handed. Example: "2014-02-05T19:21:22+01:00". (ISO8601 formatted timestamp) |
| .0.address_line_1 | No | Address line 1 for the store. Example: "1600 Pennsylvania Avenue". (string) |
| .0.address_line_2 | No | Address line 2 for the store. Example: "5º". (string) |
| .0.postal_code | No | Postal code. Example: "08013". (string) |
| .0.city | No | City. Example: "Barcelona". (string) |
| .0.state | No | State or region. Example: "Barcelona". (string) |
| .0.country_code | No | Country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| The lines starting with trackings.1 describe the API when trackings.1.type is 'pickup_point'. | ||
| .1.reference | Yes | Tracking reference. Example: "second". (string) |
| .1.operator_ref | No | Permanent identifier for the operator that handed the delivery. Example: "123-009". (string) |
| .1.store_ref | No | Permanent identifier for the store that handled this delivery. Example: "maquinista". (string) |
| .1.tracking_number | No | Tracking number. Example: "AB331". (string) |
| .1.available_at | No | When this delivery was available in the store. Example: "2014-02-05T13:21:22+01:00". (ISO8601 formatted timestamp) |
| .1.delivered_at | No | When this delivery was handed. When set, the delivey is considered to be handed. Example: "2014-02-05T19:21:22+01:00". (ISO8601 formatted timestamp) |
| .1.address_line_1 | No | Address line 1 for the pickup point. Example: "1600 Pennsylvania Avenue". (string) |
| .1.address_line_2 | No | Address line 2 for the pickup point. Example: "5º". (string) |
| .1.postal_code | No | Postal code. Example: "08013". (string) |
| .1.city | No | City. Example: "Barcelona". (string) |
| .1.state | No | State or region. Example: "Barcelona". (string) |
| .1.country_code | No | Country code. Example: "ES". (ISO-3166 alpha-2/3 code) |
| The lines starting with trackings.2 describe the API when trackings.2.type is 'postal'. | ||
| .2.reference | Yes | Internal tracking reference. Example: "third". (string) |
| .2.carrier | Yes | The name of the company that handled this delivery. Example: "SEUR". (string) |
| .2.tracking_number | No | Tracking number. Example: "TX123". (string) |
| .2.tracking_url | No | Tracking URL. Example: "https://logistics.es/TX123". (an HTTPS URL string) |
| .2.delivered_at | No | When this delivery was handed. When set, the delivey is considered to be handed. Example: "2014-02-05T19:21:22+01:00". (ISO8601 formatted timestamp) |
| delivery_method | No | Delivery method used on the purchase. |
| .name | Yes | Name of the delivery method. Example: "SEUR24". (string) |
| .days | No | Days it takes to deliver the goods. Example: "¡Entrega día siguiente!". (string) |
| .provider | No | Company or agent that performs the delivery. Example: "Correos". (string) |
| .home_delivery | No | If goods are delivered to the buyer's home or office and not to a pick-up place. Example: true. (true or false) |
| delivery_address | No | Fields describing the delivery address. |
| .given_names | Yes | Shopper's given names for delivery. Example: "Maria José". (string) |
| .surnames | Yes | Shopper's last names for delivery. Example: "Barroso Rajoy". (string) |
| .company | Yes | Shopper company name. (string) |
| .address_line_1 | Yes | Delivery address line 1. Example: "C/ Aragó 383". (string) |
| .address_line_2 | Yes | Delivery address line 2. Example: "5º". (string) |
| .postal_code | Yes | Delivery address address postal code. Example: "08013". (string) |
| .city | Yes | Delivery address city. Example: "Barcelona". (string) |
| .country_code | Yes | Delivery address country code. Example: "ES". (string) |
| .phone | No | Shopper phone. Can be a mobile phone. Example: "933 033 033". (string) |
| .mobile_phone | No | Shopper mobile phone. Only use this field if the shopper indicated that this number is a mobile phone. Example: "615 615 615". (string) |
| .state | No | Shopper region or state. Example: "Barcelona". (string) |
| .extra | No | Extra handling information that the shopper adds to the order. Example: "I'm home between 9 and 12.". (string) |
| .vat_number | No | Shopper VAT number. Example: "B12345". (string) |
| invoice_address | No | Fields describing the invoice address. |
| .given_names | Yes | Shopper's given names for invoice. Example: "Maria José". (string) |
| .surnames | Yes | Shopper's last names for invoice. Example: "Barroso Rajoy". (string) |
| .company | Yes | Shopper company name. (string) |
| .address_line_1 | Yes | Invoice address line 1. (string) |
| .address_line_2 | Yes | Invoice address line 2. (string) |
| .postal_code | Yes | Invoice address address postal code. (string) |
| .city | Yes | Invoice address city. (string) |
| .country_code | Yes | Invoice address country code. Example: "ES". (string) |
| .phone | No | Shopper phone. Can be a mobile phone. Example: "933 033 033". (string) |
| .mobile_phone | No | Shopper mobile phone. Only use this field if the shopper indicated that this number is a mobile phone. Example: "615 615 615". (string) |
| .state | No | Shopper region or state. Example: "Tarragona". (string) |
| .extra | No | Extra handling information that the shopper adds to the order. Example: "I'm home between 9 and 12.". (string) |
| .vat_number | No | Shopper VAT number. Example: "B12345". (string) |
| customer | No | Fields describing the customer. |
| .given_names | Yes | Customer given names. Example: "Maria José". (string) |
| .surnames | Yes | Customer surnames. Example: "Barroso Rajoy". (string) |
| .title | No | Customer title and/or gender. Use the one of 'mr', 'ms', 'mrs', 'miss' or 'mx' that is closest to the information supplied by the customer. If none of these can be inferred, use the title that the customer entered as-is. See also 'Note about title' in the docs. Example: "mr". (string) |
| Yes | Customer email. Example: "nisse@example.com". (string) | |
| .ref | No | Customer reference number in the shop's database. Example: 123. (string or int) |
| .date_of_birth | No | Customer date of birth in ISO-8601 format. Example: "1980-01-20". (string) |
| .nin | No | Customer's national identity number. For Spanish DNI, please include final letter. Example: "13003009L". (string) |
| .company | No | Customer company name. (string) |
| .vat_number | No | Shopper VAT number. Example: "B12345". (string) |
| .rating | No | The merchant's rating of this customer. 0 to 100, inclusive, where 0 is "cannot be trusted" and 100 is "very trustworthy". Example: 100. (int) |
| .nin_control | No | A validation code printed in the physical DNI or NIE. Required for multistore merchants and physical stores. See the FAQs to know more. Example: "15012018F2". (string) |
| .vehicle | ** | Fields describing the customer's vehicle |
| .vehicle.plaque | Yes | Plaque identificator from customer's vehicle Example: "0000AAA". (string) |
| .vehicle.brand | No | Brand from customer's vehicle Example: "Volkswagen". (string) |
| .vehicle.model | No | Model from customer's vehicle Example: "Beetle". (string) |
| .vehicle.frame | No | Frame identificator from customer's vehicle Example: "VF1RFD00653635032". (string) |
| .vehicle.first_registration_date | No | First registration date plaque from customer's vehicle Example: "2000-03-25". (string) |
| platform | Yes | Fields describing the store backend platform. These are valuable for when diagnosing unexpected behaviour. |
| .name | Yes | Name of the backend platform. If it is a "standard" platform with customisations, use 'Openbravo/theshop.es', 'SAP/theshop.es' or similar. If it is a custom platform, use 'custom'. Example: "Navision/www.theshop.es". (string) |
| .version | Yes | Version of the platform. If you don't use explicit versioning, use a release date instead. Example: "1.1". (string) |
| .plugin_version | No | Version of the plugin or platform module. If you don't use explicit versioning, use a release date instead. Example: "1.0.2". (string) |
| .uname | Yes | uname of the shop server. In PHP, use php_uname(). Example: "Darwin roatan.local 13.0.0 Darwin Kernel Version 13.0... x86_64". (string) |
| .db_name | No | DB used. Example: "MSSQL". (string) |
| .db_version | No | Version of the DB. Example: "1.2.3". (string) |
| subscription | No | Fields describing the subscription. |
| .cart | No | Fields describing the subscription elements |
| .cart.currency | Yes | Name of currency used on the purchase. Example: "EUR". (string) |
| .cart.items | Yes | List of items in the order. The list can contain zero or more instances of each item type. (list) |
| The lines starting with subscription.cart.items.0 describe the API when subscription.cart.items.0.type is 'product'. | ||
| .cart.items.0.unique_reference | Yes | A unique id for this item in merchant's system. Example: "12-123-1234". (string) |
| .cart.items.0.catalogue_reference | No | SKU or similiar reference from the merchant's catalogue. Example: "IPHONE12BLACK". (string) |
| .cart.items.0.name | Yes | A description to include in generated documents in invoices Example: "Leather Case (iPod nano) - Negro / Chocolate". (string) |
| .cart.items.0.monthly_price_with_tax | Yes | Monthly price of subscription for this item Example: 3030. (int) |
| .cart.items.0.vat_rate | Yes | Vat rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (int) |
| .cart.items.0.minimum_period | Yes | The minimum period of subscription in months. Example: 24. (int) |
| .cart.items.0.extension_period | Yes | The minimum period for extending subscription in months. Example: 3. (int) |
| .cart.items.0.start_on | No | Date when subscription starts Example: "2013-10-18". (string) |
| .cart.items.0.end_on | No | Date when subscription ends Example: "2015-10-18". (string) |
| .cart.items.0.extra | No | Additional details about the subscription. Example: "{}". |
| The lines starting with subscription.cart.items.1 describe the API when subscription.cart.items.1.type is 'subscriber_fee'. | ||
| .cart.items.1.unique_reference | Yes | A unique id for this item in merchant's system. Example: "12-123-1234". (string) |
| .cart.items.1.catalogue_reference | No | SKU or similiar reference from the merchant's catalogue. Example: "IPHONE12BLACK". (string) |
| .cart.items.1.name | Yes | A description to include in generated documents in invoices Example: "Leather Case (iPod nano) - Negro / Chocolate". (string) |
| .cart.items.1.monthly_price_with_tax | Yes | Monthly price of subscription for this item Example: 3030. (int) |
| .cart.items.1.vat_rate | Yes | Vat rate for subscription (multiplied by 100: 2100 for 21%). Example: 2100. (int) |
| .cart.items.1.minimum_period | Yes | The minimum period of subscription in months. Example: 24. (int) |
| .cart.items.1.extension_period | Yes | The minimum period for extending subscription in months. Example: 3. (int) |
| .cart.items.1.start_on | No | Date when subscription starts Example: "2013-10-18". (string) |
| .cart.items.1.end_on | No | Date when subscription ends Example: "2015-10-18". (string) |
| .cart.items.1.extra | No | Additional details about the subscription. Example: "{}". |
| .discounts | No | Discounts applied to the Subscription (list) |
| The lines starting with subscription.discounts.0 describe the API when subscription.discounts.0.type is '["percent", "amount"]'. | ||
| .discounts.0.unique_reference | Yes | A unique id for this discount in merchant's system. Example: "12-123-1234". (string) |
| .discounts.0.promotion_reference | No | Reference of the promotional campaign Example: "three_month_half_off". (string) |
| .discounts.0.amount | Yes | Amount of discount in cents or 1/100 of percent Example: 5000. (int) |
| .discounts.0.start_month | Yes | First month of discount Example: 1. (int) |
| .discounts.0.period_in_months | Yes | Duration of discount in months Example: 3. (int) |
| .initial_payment_amount | No | Initial payment amount in cents to be charged at order confirmation instead of waiting for activation Example: 2999. (positive int) |
JSON examples
Some integrations use specific features that depend on the contract between the merchant and SeQura. Use the checkboxes below to see a custom example. You can ask your SeQura’s integration buddy about the contract options that affect your integration.
Contract options
- Services: The shop sells a service, i.e., it has an ending date (ends_in or ends_on fields) for the service. F.i, a course.
- Multistore: The shop has a physical store. It may have one or many different stores. This option requires these addtional fields: store_ref, operator_ref and nin_control.
- Garage: Garages have to inform the vehicle's plaque. They are also multistore. The shop requires to add garage_chain field in case it belongs to an specific chain
- Shipment_ref: If your shop makes partial shipments and it wants to track them at disbursement, use this option. Read more.
Generate the payload for your contract options
PHP example
This example includes all options and features available.
$order = array();
$order["merchant"] = array();
$order["merchant"]["id"] = "s1";
$order["merchant_reference"] = array();
$order["merchant_reference"]["order_ref_1"] = "ZXCV1234";
$order["merchant_reference"]["order_ref_2"] = "0080-1234-4343-5353"; // optional
$order["merchant_reference"]["subscription_ref_1"] = "SUBS00001"; // optional
$order["unshipped_cart"] = array();
$order["unshipped_cart"]["currency"] = "EUR";
$order["unshipped_cart"]["order_total_with_tax"] = 6097;
$order["unshipped_cart"]["items"] = array();
$order["unshipped_cart"]["items"][0] = array();
$order["unshipped_cart"]["items"][0]["reference"] = "12-123-1234";
$order["unshipped_cart"]["items"][0]["name"] = "Leather Case (iPod nano) - Negro / Chocolate";
$order["unshipped_cart"]["items"][0]["price_with_tax"] = 3030;
$order["unshipped_cart"]["items"][0]["quantity"] = 2;
$order["unshipped_cart"]["items"][0]["subscription_period"] = 24; // optional
$order["unshipped_cart"]["items"][0]["subscription_price_per_item"] = 500; // optional
$order["unshipped_cart"]["items"][0]["subscription_price"] = 1000; // optional
$order["unshipped_cart"]["items"][0]["subscription_vat_rate"] = 2100; // optional
$order["unshipped_cart"]["items"][0]["total_with_tax"] = 6060;
$order["unshipped_cart"]["items"][0]["downloadable"] = false;
$order["unshipped_cart"]["items"][0]["perishable"] = false; // optional
$order["unshipped_cart"]["items"][0]["personalized"] = false; // optional
$order["unshipped_cart"]["items"][0]["restockable"] = true; // optional
$order["unshipped_cart"]["items"][0]["category"] = "ipod-accesorios"; // optional
$order["unshipped_cart"]["items"][0]["description"] = "Este estuche de cuero de última moda ..."; // optional
$order["unshipped_cart"]["items"][0]["manufacturer"] = "Apple"; // optional
$order["unshipped_cart"]["items"][0]["supplier"] = "Mayorista Makro"; // optional
$order["unshipped_cart"]["items"][0]["product_id"] = "6"; // optional
$order["unshipped_cart"]["items"][0]["url"] = "http://shop.example.com/ipod-accesorios/leather-case"; // optional
$order["unshipped_cart"]["items"][0]["tracking_reference"] = "first"; // optional
$order["unshipped_cart"]["items"][1] = array();
$order["unshipped_cart"]["items"][1]["type"] = "handling";
$order["unshipped_cart"]["items"][1]["reference"] = "seur24";
$order["unshipped_cart"]["items"][1]["name"] = "SEUR entrega en 24 horas";
$order["unshipped_cart"]["items"][1]["total_with_tax"] = 242;
$order["unshipped_cart"]["items"][2] = array();
$order["unshipped_cart"]["items"][2]["type"] = "invoice_fee";
$order["unshipped_cart"]["items"][2]["total_with_tax"] = 295;
$order["unshipped_cart"]["items"][3] = array();
$order["unshipped_cart"]["items"][3]["type"] = "discount";
$order["unshipped_cart"]["items"][3]["reference"] = "HALFOFF";
$order["unshipped_cart"]["items"][3]["name"] = "50 % off the full basket!";
$order["unshipped_cart"]["items"][3]["total_with_tax"] = -750;
$order["unshipped_cart"]["items"][4] = array();
$order["unshipped_cart"]["items"][4]["type"] = "other_payment";
$order["unshipped_cart"]["items"][4]["reference"] = "CASH";
$order["unshipped_cart"]["items"][4]["name"] = "Paid in cash";
$order["unshipped_cart"]["items"][4]["total_with_tax"] = -750;
$order["unshipped_cart"]["items"][5] = array();
$order["unshipped_cart"]["items"][5]["type"] = "voucher";
$order["unshipped_cart"]["items"][5]["reference"] = "NoCashBack";
$order["unshipped_cart"]["items"][5]["name"] = "A voucher for your non-shipped items";
$order["unshipped_cart"]["items"][5]["total_with_tax"] = 1000;
$order["unshipped_cart"]["items"][7] = array();
$order["unshipped_cart"]["items"][7]["type"] = "flight";
$order["unshipped_cart"]["items"][7]["reference"] = "ASDF345345";
$order["unshipped_cart"]["items"][7]["name"] = "Vueling Barcelona--New York";
$order["unshipped_cart"]["items"][7]["description"] = "Vueling BCN Barcelona - NYC New York"; // optional
$order["unshipped_cart"]["items"][7]["departure_date"] = "2017-06-30";
$order["unshipped_cart"]["items"][7]["destination_date"] = "2002-12-23T12:00:00+01:00"; // optional
$order["unshipped_cart"]["items"][7]["total_with_tax"] = 75020;
$order["unshipped_cart"]["items"][7]["downloadable"] = true;
$order["unshipped_cart"]["items"][7]["iata_carrier_code"] = "VY";
$order["unshipped_cart"]["items"][7]["iata_departure_code"] = "BCN";
$order["unshipped_cart"]["items"][7]["iata_destination_code"] = "JFK";
$order["unshipped_cart"]["items"][7]["country_departure_code"] = "ESP"; // optional
$order["unshipped_cart"]["items"][7]["country_destination_code"] = "ESP"; // optional
$order["unshipped_cart"]["items"][7]["customer_travel_insurance"] = true; // optional
$order["unshipped_cart"]["items"][7]["customer_loyalty_card"] = "94859034"; // optional
$order["unshipped_cart"]["items"][7]["customer_card_level"] = "gold"; // optional
$order["unshipped_cart"]["items"][7]["customer_member_since"] = "2002-12-23T12:00:00+01:00"; // optional
$order["unshipped_cart"]["items"][7]["url"] = "https://tickets.vueling.com/CampaignPage.aspx?flow=SB&step=select&culture=es-ES&adt=2&chd=0&infant=0&Currency=EUR&marketstructure=RoundTrip"; // optional
$order["unshipped_cart"]["items"][7]["segments"] = array();
$order["unshipped_cart"]["items"][7]["segments"][0] = array();
$order["unshipped_cart"]["items"][7]["segments"][0]["iata_departure_code"] = "BCN";
$order["unshipped_cart"]["items"][7]["segments"][0]["iata_destination_code"] = "AMS";
$order["unshipped_cart"]["items"][7]["segments"][0]["departure_time"] = "2017-06-30T13:50:00+02:00"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["destination_time"] = "2017-06-30T13:50:00+02:00"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["iata_carrier_code"] = "VY"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["iata_flight_code"] = "VY1234"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["cabin_class"] = "priority"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["rbd"] = "A"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["fare_basis"] = "ADNOU3Z1"; // optional
$order["unshipped_cart"]["items"][7]["segments"][0]["ancillaries"] = true; // optional
$order["unshipped_cart"]["items"][7]["pax"] = array();
$order["unshipped_cart"]["items"][7]["pax"][0] = array();
$order["unshipped_cart"]["items"][7]["pax"][0]["given_names"] = "Maria José";
$order["unshipped_cart"]["items"][7]["pax"][0]["surnames"] = "Barroso Rajoy";
$order["unshipped_cart"]["items"][7]["pax"][0]["title"] = "mrs"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["sex"] = "F"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["date_of_birth"] = "1980-01-20"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["age_class"] = "18+"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["nationality"] = "ES"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["identity_documentation"] = array(); // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["number"] = "PB103009";
$order["unshipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["type"] = "Passport"; // optional
$order["unshipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["country_code"] = "ES"; // optional
$order["unshipped_cart"]["items"][8] = array();
$order["unshipped_cart"]["items"][8]["type"] = "lodging";
$order["unshipped_cart"]["items"][8]["reference"] = "ASDF345345";
$order["unshipped_cart"]["items"][8]["name"] = "Hotel Chaplin, 5 nights";
$order["unshipped_cart"]["items"][8]["checkin_date"] = "2017-06-30";
$order["unshipped_cart"]["items"][8]["checkout_date"] = "2017-07-02";
$order["unshipped_cart"]["items"][8]["total_with_tax"] = 75020;
$order["unshipped_cart"]["items"][8]["downloadable"] = true;
$order["unshipped_cart"]["items"][8]["capacity"] = 4; // optional
$order["unshipped_cart"]["items"][8]["establishment_name"] = "Hotel California";
$order["unshipped_cart"]["items"][8]["address_line_1"] = "1600 Pennsylvania Avenue"; // optional
$order["unshipped_cart"]["items"][8]["address_line_2"] = "5º"; // optional
$order["unshipped_cart"]["items"][8]["postal_code"] = "08013"; // optional
$order["unshipped_cart"]["items"][8]["city"] = "Barcelona";
$order["unshipped_cart"]["items"][8]["state"] = "Barcelona"; // optional
$order["unshipped_cart"]["items"][8]["country_code"] = "ES";
$order["unshipped_cart"]["items"][8]["coordinates"] = array(); // optional
$order["unshipped_cart"]["items"][8]["coordinates"]["datum"] = "WGS84";
$order["unshipped_cart"]["items"][8]["coordinates"]["lat_lng"] = [1.2948883, 103.8543904];
$order["unshipped_cart"]["items"][8]["url"] = "http://www.starwoodhotels.com/whotels/property/overview/index.html?language=en_US&propertyID=3183"; // optional
$order["unshipped_cart"]["items"][10] = array();
$order["unshipped_cart"]["items"][10]["type"] = "subscriber_fee";
$order["unshipped_cart"]["items"][10]["reference"] = "12-123-1234"; // optional
$order["unshipped_cart"]["items"][10]["name"] = "Subscription fee";
$order["unshipped_cart"]["items"][10]["price_with_tax"] = 3030; // optional
$order["unshipped_cart"]["items"][10]["quantity"] = 2; // optional
$order["unshipped_cart"]["items"][10]["subscription_period"] = 24; // optional
$order["unshipped_cart"]["items"][10]["subscription_price_per_item"] = 500; // optional
$order["unshipped_cart"]["items"][10]["subscription_price"] = 1000; // optional
$order["unshipped_cart"]["items"][10]["subscription_vat_rate"] = 2100; // optional
$order["unshipped_cart"]["items"][10]["total_with_tax"] = 6060;
$order["shipped_cart"] = array();
$order["shipped_cart"]["currency"] = "EUR";
$order["shipped_cart"]["order_total_with_tax"] = 6097;
$order["shipped_cart"]["items"] = array();
$order["shipped_cart"]["items"][0] = array();
$order["shipped_cart"]["items"][0]["reference"] = "12-123-1234";
$order["shipped_cart"]["items"][0]["name"] = "Leather Case (iPod nano) - Negro / Chocolate";
$order["shipped_cart"]["items"][0]["price_with_tax"] = 3030;
$order["shipped_cart"]["items"][0]["quantity"] = 2;
$order["shipped_cart"]["items"][0]["subscription_period"] = 24; // optional
$order["shipped_cart"]["items"][0]["subscription_price_per_item"] = 500; // optional
$order["shipped_cart"]["items"][0]["subscription_price"] = 1000; // optional
$order["shipped_cart"]["items"][0]["subscription_vat_rate"] = 2100; // optional
$order["shipped_cart"]["items"][0]["total_with_tax"] = 6060;
$order["shipped_cart"]["items"][0]["downloadable"] = false;
$order["shipped_cart"]["items"][0]["perishable"] = false; // optional
$order["shipped_cart"]["items"][0]["personalized"] = false; // optional
$order["shipped_cart"]["items"][0]["restockable"] = true; // optional
$order["shipped_cart"]["items"][0]["category"] = "ipod-accesorios"; // optional
$order["shipped_cart"]["items"][0]["description"] = "Este estuche de cuero de última moda ..."; // optional
$order["shipped_cart"]["items"][0]["manufacturer"] = "Apple"; // optional
$order["shipped_cart"]["items"][0]["supplier"] = "Mayorista Makro"; // optional
$order["shipped_cart"]["items"][0]["product_id"] = "6"; // optional
$order["shipped_cart"]["items"][0]["url"] = "http://shop.example.com/ipod-accesorios/leather-case"; // optional
$order["shipped_cart"]["items"][0]["tracking_reference"] = "first"; // optional
$order["shipped_cart"]["items"][1] = array();
$order["shipped_cart"]["items"][1]["type"] = "handling";
$order["shipped_cart"]["items"][1]["reference"] = "seur24";
$order["shipped_cart"]["items"][1]["name"] = "SEUR entrega en 24 horas";
$order["shipped_cart"]["items"][1]["total_with_tax"] = 242;
$order["shipped_cart"]["items"][2] = array();
$order["shipped_cart"]["items"][2]["type"] = "invoice_fee";
$order["shipped_cart"]["items"][2]["total_with_tax"] = 295;
$order["shipped_cart"]["items"][3] = array();
$order["shipped_cart"]["items"][3]["type"] = "discount";
$order["shipped_cart"]["items"][3]["reference"] = "HALFOFF";
$order["shipped_cart"]["items"][3]["name"] = "50 % off the full basket!";
$order["shipped_cart"]["items"][3]["total_with_tax"] = -750;
$order["shipped_cart"]["items"][4] = array();
$order["shipped_cart"]["items"][4]["type"] = "other_payment";
$order["shipped_cart"]["items"][4]["reference"] = "CASH";
$order["shipped_cart"]["items"][4]["name"] = "Paid in cash";
$order["shipped_cart"]["items"][4]["total_with_tax"] = -750;
$order["shipped_cart"]["items"][5] = array();
$order["shipped_cart"]["items"][5]["type"] = "voucher";
$order["shipped_cart"]["items"][5]["reference"] = "NoCashBack";
$order["shipped_cart"]["items"][5]["name"] = "A voucher for your non-shipped items";
$order["shipped_cart"]["items"][5]["total_with_tax"] = 1000;
$order["shipped_cart"]["items"][7] = array();
$order["shipped_cart"]["items"][7]["type"] = "flight";
$order["shipped_cart"]["items"][7]["reference"] = "ASDF345345";
$order["shipped_cart"]["items"][7]["name"] = "Vueling Barcelona--New York";
$order["shipped_cart"]["items"][7]["description"] = "Vueling BCN Barcelona - NYC New York"; // optional
$order["shipped_cart"]["items"][7]["departure_date"] = "2017-06-30";
$order["shipped_cart"]["items"][7]["destination_date"] = "2002-12-23T12:00:00+01:00"; // optional
$order["shipped_cart"]["items"][7]["total_with_tax"] = 75020;
$order["shipped_cart"]["items"][7]["downloadable"] = true;
$order["shipped_cart"]["items"][7]["iata_carrier_code"] = "VY";
$order["shipped_cart"]["items"][7]["iata_departure_code"] = "BCN";
$order["shipped_cart"]["items"][7]["iata_destination_code"] = "JFK";
$order["shipped_cart"]["items"][7]["country_departure_code"] = "ESP"; // optional
$order["shipped_cart"]["items"][7]["country_destination_code"] = "ESP"; // optional
$order["shipped_cart"]["items"][7]["customer_travel_insurance"] = true; // optional
$order["shipped_cart"]["items"][7]["customer_loyalty_card"] = "94859034"; // optional
$order["shipped_cart"]["items"][7]["customer_card_level"] = "gold"; // optional
$order["shipped_cart"]["items"][7]["customer_member_since"] = "2002-12-23T12:00:00+01:00"; // optional
$order["shipped_cart"]["items"][7]["url"] = "https://tickets.vueling.com/CampaignPage.aspx?flow=SB&step=select&culture=es-ES&adt=2&chd=0&infant=0&Currency=EUR&marketstructure=RoundTrip"; // optional
$order["shipped_cart"]["items"][7]["segments"] = array();
$order["shipped_cart"]["items"][7]["segments"][0] = array();
$order["shipped_cart"]["items"][7]["segments"][0]["iata_departure_code"] = "BCN";
$order["shipped_cart"]["items"][7]["segments"][0]["iata_destination_code"] = "AMS";
$order["shipped_cart"]["items"][7]["segments"][0]["departure_time"] = "2017-06-30T13:50:00+02:00"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["destination_time"] = "2017-06-30T13:50:00+02:00"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["iata_carrier_code"] = "VY"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["iata_flight_code"] = "VY1234"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["cabin_class"] = "priority"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["rbd"] = "A"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["fare_basis"] = "ADNOU3Z1"; // optional
$order["shipped_cart"]["items"][7]["segments"][0]["ancillaries"] = true; // optional
$order["shipped_cart"]["items"][7]["pax"] = array();
$order["shipped_cart"]["items"][7]["pax"][0] = array();
$order["shipped_cart"]["items"][7]["pax"][0]["given_names"] = "Maria José";
$order["shipped_cart"]["items"][7]["pax"][0]["surnames"] = "Barroso Rajoy";
$order["shipped_cart"]["items"][7]["pax"][0]["title"] = "mrs"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["sex"] = "F"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["date_of_birth"] = "1980-01-20"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["age_class"] = "18+"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["nationality"] = "ES"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["identity_documentation"] = array(); // optional
$order["shipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["number"] = "PB103009";
$order["shipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["type"] = "Passport"; // optional
$order["shipped_cart"]["items"][7]["pax"][0]["identity_documentation"]["country_code"] = "ES"; // optional
$order["shipped_cart"]["items"][8] = array();
$order["shipped_cart"]["items"][8]["type"] = "lodging";
$order["shipped_cart"]["items"][8]["reference"] = "ASDF345345";
$order["shipped_cart"]["items"][8]["name"] = "Hotel Chaplin, 5 nights";
$order["shipped_cart"]["items"][8]["checkin_date"] = "2017-06-30";
$order["shipped_cart"]["items"][8]["checkout_date"] = "2017-07-02";
$order["shipped_cart"]["items"][8]["total_with_tax"] = 75020;
$order["shipped_cart"]["items"][8]["downloadable"] = true;
$order["shipped_cart"]["items"][8]["capacity"] = 4; // optional
$order["shipped_cart"]["items"][8]["establishment_name"] = "Hotel California";
$order["shipped_cart"]["items"][8]["address_line_1"] = "1600 Pennsylvania Avenue"; // optional
$order["shipped_cart"]["items"][8]["address_line_2"] = "5º"; // optional
$order["shipped_cart"]["items"][8]["postal_code"] = "08013"; // optional
$order["shipped_cart"]["items"][8]["city"] = "Barcelona";
$order["shipped_cart"]["items"][8]["state"] = "Barcelona"; // optional
$order["shipped_cart"]["items"][8]["country_code"] = "ES";
$order["shipped_cart"]["items"][8]["coordinates"] = array(); // optional
$order["shipped_cart"]["items"][8]["coordinates"]["datum"] = "WGS84";
$order["shipped_cart"]["items"][8]["coordinates"]["lat_lng"] = [1.2948883, 103.8543904];
$order["shipped_cart"]["items"][8]["url"] = "http://www.starwoodhotels.com/whotels/property/overview/index.html?language=en_US&propertyID=3183"; // optional
$order["shipped_cart"]["items"][10] = array();
$order["shipped_cart"]["items"][10]["type"] = "subscriber_fee";
$order["shipped_cart"]["items"][10]["reference"] = "12-123-1234"; // optional
$order["shipped_cart"]["items"][10]["name"] = "Subscription fee";
$order["shipped_cart"]["items"][10]["price_with_tax"] = 3030; // optional
$order["shipped_cart"]["items"][10]["quantity"] = 2; // optional
$order["shipped_cart"]["items"][10]["subscription_period"] = 24; // optional
$order["shipped_cart"]["items"][10]["subscription_price_per_item"] = 500; // optional
$order["shipped_cart"]["items"][10]["subscription_price"] = 1000; // optional
$order["shipped_cart"]["items"][10]["subscription_vat_rate"] = 2100; // optional
$order["shipped_cart"]["items"][10]["total_with_tax"] = 6060;
$order["cancellation_reason"] = "customer_cancel"; // optional
$order["trackings"] = array(); // optional
$order["trackings"][0] = array();
$order["trackings"][0]["type"] = "pickup_store";
$order["trackings"][0]["reference"] = "first";
$order["trackings"][0]["operator_ref"] = "123-009"; // optional
$order["trackings"][0]["store_ref"] = "maquinista"; // optional
$order["trackings"][0]["tracking_number"] = "AB331"; // optional
$order["trackings"][0]["available_at"] = "2014-02-05T13:21:22+01:00"; // optional
$order["trackings"][0]["delivered_at"] = "2014-02-05T19:21:22+01:00"; // optional
$order["trackings"][0]["address_line_1"] = "1600 Pennsylvania Avenue"; // optional
$order["trackings"][0]["address_line_2"] = "5º"; // optional
$order["trackings"][0]["postal_code"] = "08013"; // optional
$order["trackings"][0]["city"] = "Barcelona"; // optional
$order["trackings"][0]["state"] = "Barcelona"; // optional
$order["trackings"][0]["country_code"] = "ES"; // optional
$order["trackings"][1] = array();
$order["trackings"][1]["type"] = "pickup_point";
$order["trackings"][1]["reference"] = "second";
$order["trackings"][1]["operator_ref"] = "123-009"; // optional
$order["trackings"][1]["store_ref"] = "maquinista"; // optional
$order["trackings"][1]["tracking_number"] = "AB331"; // optional
$order["trackings"][1]["available_at"] = "2014-02-05T13:21:22+01:00"; // optional
$order["trackings"][1]["delivered_at"] = "2014-02-05T19:21:22+01:00"; // optional
$order["trackings"][1]["address_line_1"] = "1600 Pennsylvania Avenue"; // optional
$order["trackings"][1]["address_line_2"] = "5º"; // optional
$order["trackings"][1]["postal_code"] = "08013"; // optional
$order["trackings"][1]["city"] = "Barcelona"; // optional
$order["trackings"][1]["state"] = "Barcelona"; // optional
$order["trackings"][1]["country_code"] = "ES"; // optional
$order["trackings"][2] = array();
$order["trackings"][2]["type"] = "postal";
$order["trackings"][2]["reference"] = "third";
$order["trackings"][2]["carrier"] = "SEUR";
$order["trackings"][2]["tracking_number"] = "TX123"; // optional
$order["trackings"][2]["tracking_url"] = "https://logistics.es/TX123"; // optional
$order["trackings"][2]["delivered_at"] = "2014-02-05T19:21:22+01:00"; // optional
$order["delivery_method"] = array(); // optional
$order["delivery_method"]["name"] = "SEUR24";
$order["delivery_method"]["days"] = "¡Entrega día siguiente!"; // optional
$order["delivery_method"]["provider"] = "Correos"; // optional
$order["delivery_method"]["home_delivery"] = true; // optional
$order["delivery_address"] = array(); // optional
$order["delivery_address"]["given_names"] = "Maria José";
$order["delivery_address"]["surnames"] = "Barroso Rajoy";
$order["delivery_address"]["company"] = "";
$order["delivery_address"]["address_line_1"] = "C/ Aragó 383";
$order["delivery_address"]["address_line_2"] = "5º";
$order["delivery_address"]["postal_code"] = "08013";
$order["delivery_address"]["city"] = "Barcelona";
$order["delivery_address"]["country_code"] = "ES";
$order["delivery_address"]["phone"] = "933 033 033"; // optional
$order["delivery_address"]["mobile_phone"] = "615 615 615"; // optional
$order["delivery_address"]["state"] = "Barcelona"; // optional
$order["delivery_address"]["extra"] = "I'm home between 9 and 12."; // optional
$order["delivery_address"]["vat_number"] = "B12345"; // optional
$order["invoice_address"] = array(); // optional
$order["invoice_address"]["given_names"] = "Maria José";
$order["invoice_address"]["surnames"] = "Barroso Rajoy";
$order["invoice_address"]["company"] = "";
$order["invoice_address"]["address_line_1"] = "";
$order["invoice_address"]["address_line_2"] = "";
$order["invoice_address"]["postal_code"] = "";
$order["invoice_address"]["city"] = "";
$order["invoice_address"]["country_code"] = "ES";
$order["invoice_address"]["phone"] = "933 033 033"; // optional
$order["invoice_address"]["mobile_phone"] = "615 615 615"; // optional
$order["invoice_address"]["state"] = "Tarragona"; // optional
$order["invoice_address"]["extra"] = "I'm home between 9 and 12."; // optional
$order["invoice_address"]["vat_number"] = "B12345"; // optional
$order["customer"] = array(); // optional
$order["customer"]["given_names"] = "Maria José";
$order["customer"]["surnames"] = "Barroso Rajoy";
$order["customer"]["title"] = "mr"; // optional
$order["customer"]["email"] = "nisse@example.com";
$order["customer"]["ref"] = 123; // optional
$order["customer"]["date_of_birth"] = "1980-01-20"; // optional
$order["customer"]["nin"] = "13003009L"; // optional
$order["customer"]["company"] = ""; // optional
$order["customer"]["vat_number"] = "B12345"; // optional
$order["customer"]["rating"] = 100; // optional
$order["customer"]["nin_control"] = "15012018F2"; // optional
// $order["customer"]["vehicle"] = array(); // contract
$order["customer"]["vehicle"]["plaque"] = "0000AAA";
$order["customer"]["vehicle"]["brand"] = "Volkswagen"; // optional
$order["customer"]["vehicle"]["model"] = "Beetle"; // optional
$order["customer"]["vehicle"]["frame"] = "VF1RFD00653635032"; // optional
$order["customer"]["vehicle"]["first_registration_date"] = "2000-03-25"; // optional
$order["platform"] = array();
$order["platform"]["name"] = "Navision/www.theshop.es";
$order["platform"]["version"] = "1.1";
$order["platform"]["plugin_version"] = "1.0.2"; // optional
$order["platform"]["uname"] = "Darwin roatan.local 13.0.0 Darwin Kernel Version 13.0... x86_64";
$order["platform"]["db_name"] = "MSSQL"; // optional
$order["platform"]["db_version"] = "1.2.3"; // optional
$order["subscription"] = array(); // optional
$order["subscription"]["cart"] = array(); // optional
$order["subscription"]["cart"]["currency"] = "EUR";
$order["subscription"]["cart"]["items"] = array();
$order["subscription"]["cart"]["items"][0] = array();
$order["subscription"]["cart"]["items"][0]["type"] = "product";
$order["subscription"]["cart"]["items"][0]["unique_reference"] = "12-123-1234";
$order["subscription"]["cart"]["items"][0]["catalogue_reference"] = "IPHONE12BLACK"; // optional
$order["subscription"]["cart"]["items"][0]["name"] = "Leather Case (iPod nano) - Negro / Chocolate";
$order["subscription"]["cart"]["items"][0]["monthly_price_with_tax"] = 3030;
$order["subscription"]["cart"]["items"][0]["vat_rate"] = 2100;
$order["subscription"]["cart"]["items"][0]["minimum_period"] = 24;
$order["subscription"]["cart"]["items"][0]["extension_period"] = 3;
$order["subscription"]["cart"]["items"][0]["start_on"] = "2013-10-18"; // optional
$order["subscription"]["cart"]["items"][0]["end_on"] = "2015-10-18"; // optional
$order["subscription"]["cart"]["items"][0]["extra"] = array(); // optional
$order["subscription"]["cart"]["items"][1] = array();
$order["subscription"]["cart"]["items"][1]["type"] = "subscriber_fee";
$order["subscription"]["cart"]["items"][1]["unique_reference"] = "12-123-1234";
$order["subscription"]["cart"]["items"][1]["catalogue_reference"] = "IPHONE12BLACK"; // optional
$order["subscription"]["cart"]["items"][1]["name"] = "Leather Case (iPod nano) - Negro / Chocolate";
$order["subscription"]["cart"]["items"][1]["monthly_price_with_tax"] = 3030;
$order["subscription"]["cart"]["items"][1]["vat_rate"] = 2100;
$order["subscription"]["cart"]["items"][1]["minimum_period"] = 24;
$order["subscription"]["cart"]["items"][1]["extension_period"] = 3;
$order["subscription"]["cart"]["items"][1]["start_on"] = "2013-10-18"; // optional
$order["subscription"]["cart"]["items"][1]["end_on"] = "2015-10-18"; // optional
$order["subscription"]["cart"]["items"][1]["extra"] = array(); // optional
$order["subscription"]["discounts"] = array(); // optional
$order["subscription"]["discounts"][0] = array();
$order["subscription"]["discounts"][0]["type"] = ["percent", "amount"];
$order["subscription"]["discounts"][0]["unique_reference"] = "12-123-1234";
$order["subscription"]["discounts"][0]["promotion_reference"] = "three_month_half_off"; // optional
$order["subscription"]["discounts"][0]["amount"] = 5000;
$order["subscription"]["discounts"][0]["start_month"] = 1;
$order["subscription"]["discounts"][0]["period_in_months"] = 3;
$order["subscription"]["initial_payment_amount"] = 2999; // optional