Skip to main content

External Order Webhook (0.1.0)

Download OpenAPI specification:Download

team-order-management: team-order-management@newstore.com

Requests order information from an external order management system.

Use this webhook when you use an external order management system as your primary OMS and NewStore is the secondary order management system in your business. This webhook retrieves the full purchase history of a customer or order details from orders placed outside of the NewStore platform.

To use this webhook, first set up the external order webhook configuration.

For more information, see the integration guide.

Request purchase history details of a customer

Retrieves the purchase history of a customer from an external system.

This method returns a maximum of 100 orders, sorted from newest to oldest orders placed in the system. The NewStore platform will cut off everything over 100 orders.

The retrieved orders are filtered by the email address of the customer.

query Parameters
consumer_email
string

The email of the customer.

Responses

Response samples

Content type
application/json
{
  • "orders": [
    ]
}

Request order details

Requests details for the order with the given identifier from an external system.

path Parameters
id
required
string

The identifier of the order.

Responses

Response samples

Content type
application/json
Example
{
  • "id": "GD000001234",
  • "placed_at": "2021-11-22T12:51:39.30Z",
  • "channel_type": "web",
  • "origin": "external",
  • "origin_id": "GD000001234",
  • "status": "in_fulfillment",
  • "currency": "USD",
  • "fulfillment_type": "traditional",
  • "customer": {
    },
  • "items": [
    ],
  • "totals": {
    },
  • "payment_history": [
    ]
}