Skip to main content

Submit Pending Orders

POST 

/v2/submit

Submits an order to Bonsai without payment. These orders will not be processed until payment is submitted.

Request

Body

required
    customer objectrequired
    email emailrequired

    Customer email

    firstName string

    Customer's first name

    lastName string

    Customer's last name

    products object[]required

    Possible values: >= 1

  • Array [
  • id stringrequired

    Product ID.

    variantId stringrequired

    The ID of the product variant.

    quantity floatrequired

    Possible values: >= 1

    Quantity of the product variant.

  • ]
  • shippingAddress objectrequired
    firstName stringrequired

    Customer first name.

    lastName stringrequired

    Customer last name.

    address1 stringrequired

    The street address of the shipping address.

    address2 stringnullable

    An optional additional field for the street address of the shipping address.

    city stringrequired

    The city, town, or village of the shipping address.

    country stringrequired

    The two-letter code (ISO 3166-1 format) for the country of the shipping address.

    province stringnullable

    The two-letter abbreviation of the region of the shipping address.

    phone string

    The phone number at the shipping address.

    zip stringrequired

    The postal code (zip, postcode, Eircode, …) of the shipping address.

    payment objectrequired
    method stringrequired

    Possible values: [credit card, external payment, stripe]

    Payment method that will be used to pay for the order.

    externalOrderId string

    ID of the order provided to Bonsai by the party who placed the order. This can be anything you like, but should be unique per order.

    misc object

    Miscellaneous data for the order. For example, analytics data.

    data objectrequired
    note string

    Note containing extra information for our team

    cartId string

    Unique identifier for the cart

Responses

Success

Schema
    data object
    email emailrequired

    Email of the customer

    shippingAddress objectrequired
    firstName stringrequired

    Customer first name.

    lastName stringrequired

    Customer last name.

    address1 stringrequired

    The street address of the shipping address.

    address2 stringnullable

    An optional additional field for the street address of the shipping address.

    city stringrequired

    The city, town, or village of the shipping address.

    country stringrequired

    The two-letter code (ISO 3166-1 format) for the country of the shipping address.

    province stringnullable

    The two-letter abbreviation of the region of the shipping address.

    phone string

    The phone number at the shipping address.

    zip stringrequired

    The postal code (zip, postcode, Eircode, …) of the shipping address.

    shippingLines object[]required
  • Array [
  • title stringrequired

    The title of the shipping method.

    code stringrequired

    A reference to the shipping method.

    price floatrequired

    The price of this shipping method in the shop currency. Can not be negative.

    source stringrequired

    The source of the shipping method.

    tax floatnullable

    Taxes for a specific shipping line.

  • ]
  • products object[]required
  • Array [
  • id stringrequired

    Product ID.

    variantId stringrequired

    The ID of the product variant.

    quantity floatrequired

    Possible values: >= 1

    Quantity of the product variant.

    name stringrequired

    The title of the product.

    price floatrequired

    The price of the product.

  • ]
  • breakdown objectrequired
    goods floatrequired

    The amount of goods refunded

    goodsTax floatrequired

    The amount of goods tax refunded

    shipping floatrequired

    The amount of shipping refunded

    shippingTax floatrequired

    The amount of shipping tax refunded

    duties floatrequired

    The amount of duties refunded

    currency stringrequired

    Possible values: [CAD, USD, GBP, AUD, EUR]

    Currency of the refund

    id stringrequired

    Public ID of the order.

    orderNumber floatrequired

    Order number in the system

    note string

    Note containing extra information for our team

Loading...