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 either the email address or the token of the customer, which is part of the query parameters for the request. Note: If the tenant is configured to use PII in a data privacy compliant way then the webhook is responsible for detokenizing the consumer_token.

query Parameters
consumer_email
string

The email of the customer. If the tenant is not configured for PII then only consumer_email will be provided.

consumer_token
string

The PII token for the internal customer identifier. If the tenant is configured for PII then only consumer_token will be provided. It is the webhooks responsibility to detokenize this value for further lookups.

Responses

Response samples

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

Request order details

Requests details for the order with the given identifier from an external system. Note: If the tenant is configured to use PII in a data privacy compliant way then the webhook is responsible for tokenizing the customer PII data.

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": [
    ]
}