Create or Update Order

This endpoint can be used to create an order. The orders are typically pushed to ShipMonk from the 3rd party software.

The Create Order endpoint does not create duplicate entries when both the store_id and order_key are the same. Instead, it updates the existing order.

NOTE: Resending an Order with a different order_key will result in Order duplication.*

The order can be in following 4 statuses:

  • unfulfilled will create order for ShipMonk to process
  • cancelled will create cancelled order or cancel existing order
  • fulfilled will create order in status "Fulfilled by 3rd party" or change existing order status to that status or not perform any action if order was fulfilled by ShipMonk
  • onHold will create order in status onHold or put an existing order on hold.

Can be useful:

  • if the field warehouse is not given, ShipMonk resolves it based on inventory & shipping costs
  • the field custom_data can be used for any data that you need to store and then receive back in shipment notification
  • the field attributes is only used for a custom development and in most of the cases it won't be needed
  • if the field submit_at is not given, order is submit according to store settings.

Recipient Tax ID

The recipient_tax_id field is an optional parameter when submitting an order through the API. However, it is mandatory for international shipments to certain countries, such as Mexico, Brazil, and South Korea. This field plays a role in customs clearance, ensuring accurate calculation of duties and taxes at the destination.

How it's used

For orders shipping to destinations where a recipient tax ID is mandatory, failure to include this field on the shipping label will result in the order being placed in the "Recipient Tax ID Required" Action Required status. Without a valid tax ID, carriers may reject the shipment, returning it to the sender.

Best Practices

To prevent delays, collect the recipient_tax_id from the recipient at checkout. This information is unique to the individual or entity receiving the shipment.

Resolving Missing Recipient Tax ID Issues

To address a missing recipient tax ID, you can update the recipient_tax_id in one of two ways:

  • Via API: Submit the missing tax ID programmatically using the appropriate endpoint.
  • Manually: Edit the order details directly in the ShipMonk App.

Additional Resources For more information, including a current list of countries requiring a recipient tax ID, consult the Action Required Orders documentation. Refer specifically to the "Recipient Tax ID Required" section for detailed guidance and troubleshooting steps.

Lot requirements

Settings for lot requirements (lot, minimum shelf life, etc.) depend on your account settings. Contact your happiness manager to enable lot management.

It is possible to set minimum shelf life for the whole order, per order item, or specific lot requirements per order item.

  • If you set the minimum shelf life for the whole order, you can't use settings at the item level.
  • If you set the minimum shelf life for an order item, you can't set specific lot controls for the same order item.

If the lot requirement is not applicable to the mapped bundle, the order is accepted, but the item mapping ends with action required and you have to update the bundles or set different lot requirements.

You can override the requirements from public API manually in the application. New request from API will override the manual settings, also empty lot settings will remove existing lot restrictions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required
≥ 1

Unique identifier of the ShipMonk store

string
required
length ≤ 255

Customer-facing identifier for an order. Uniqueness is recommended but not strictly enforced

string
required
length ≤ 255

Unique identifier from an external system used to associate an order. Must be unique per order

items
array of objects
required

List of items to be fulfilled in the order

items*
ship_to
object
required

Shipping destination address

string
required
length ≤ 255

Requested shipping method or service for the order

date-time
required

ISO 8601 timestamp indicating when the order was originally placed

string
enum
required

Current order status

Show Details
unfulfilledOrder will be fulfilled by ShipMonk
fulfilledOrder has been already fulfilled, ShipMonk won't fulfill this order
cancelledOrder won't be fulfilled by ShipMonk
onHoldOrder is temporarily on hold and can be restored or cancelled any time
Allowed:
attributes
array of objects
Defaults to

Key-value pairs for custom order attributes

attributes
string | null
Defaults to null

Business partner or trading entity associated with B2B orders

enum

Classification or category of the order

string | null
Defaults to null

Customer's email address used by the carrier for delivery communications

double | null
≥ 0
Defaults to null

Amount the customer paid for shipping

double | null
≥ 0
Defaults to null

Amount of tax the customer paid

string | null
Defaults to USD

Three-letter currency code for pricing (e.g., 'USD')

references
array of objects
Defaults to

External system references associated with the order

references
string | null
Defaults to null

Notes provided by the customer or end buyer for reference

string | null
Defaults to null

Internal notes about the order not visible to the customer

string | null
Defaults to null

Warehouse identifier where goods are processed (e.g., 'FL1', 'CA1')

string | null
Defaults to null

Message to be printed on a gift note included with the shipment

string | null
Defaults to null

Name to be printed on a gift note, indicating who the gift is from

custom_data
array of objects
Defaults to

Custom data key-value pairs associated with the order

custom_data
b2b_attributes
array of objects
Defaults to

To start sending B2B orders you should reach us out at [email protected] first

b2b_attributes
date-time | null
Defaults to null

ISO 8601 timestamp for when to submit the order

special_requirements

Special handling requirements for the order

recipient_tax_id

Tax identification number for the shipment recipient

integer | null
Defaults to null

Minimum required shelf life in days for items in the order

Response

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json