Skip to content

Commit

Permalink
Adds Brightpearl docs
Browse files Browse the repository at this point in the history
  • Loading branch information
allolex committed Dec 3, 2012
1 parent b9e87de commit 3eb42b4
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Brightpearl API Documentation

All the documentation here (for now) is from Brightpearl and belongs to
them.
37 changes: 37 additions & 0 deletions docs/order-service.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# The Order Service

## Base URI

/order-search

## Columns

orderId | The Id of the Order. Can be used to retrive all order information usinge Order Get.
orderTypeId | The Id of the Order Type. See report reference data for description.
contactId | The ID of the Contact. Can be used to recover all information about a contact by issuing a Contact GET.
orderStatusId | The Id of the Order status. Description can be found in the report reference data.
orderStockStatusId | The ID of the Order stock status. Description can be found in the report reference data.
createdOn | The date the Order was created.
createdById | The ID of the Staff member who created this order.

## Filters

Name | Sortable | Data type
placedOn | true | PERIOD
deliveryDate | true | PERIOD
shippingMethodId | true | INTEGER
staffOwnerContactId | true | INTEGER
projectId | true | INTEGER
departmentId | true | INTEGER
leadSourceId | true | INTEGER

## Usage

placedOn | The date the order was placed.
deliveryDate | The date the delivery is set for.
shippingMethodId | The ID of the Shipping Method.
staffOwnerContactId | The ID of the Staff member who owns the Order.
projectId | The ID of the project the Order is associated with.
departmentId | The ID of the department the Order is associated with.
leadSourceId | The ID of the lead source the Order is associated with.

33 changes: 33 additions & 0 deletions docs/product-service.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# The Product Service #

Base URI
/product-service/product/{ID-SET}

Refer to our documentation on URI syntax for more information on how to construct URIs.

Description

Returns the ID , identity, stock, sales channels and composition of a product

brandId : The Id of the brand of which this product is assigned.
productTypeId : The Id of the Product Type.
identity : details such information as the SKU, ISBN, EAN and UPC of the product
productGroupId : The id of which this product is a group of.
stock : details information pertinent to stock/inventory i.e. is the product stock tracked
financialDetails : details financial information of the product.
salesChannels : details information pertinent to a sales channel. A sales channel is a means of selling the product. The default sales channel is the Brightpearl Ecommerce store, other channels can be obtain by the use of the query parameter contextChannelId (value channel id).Default channel information includes details such as the name of the channel, product name, product condition, categories and translated descriptions/short descriptions of the product. For other channel the sales channel shall also include availableToSellOnChannel and sellWhenNoStock.
composition : details the composition of the product i.e. is a bundle
bundleComponents : details the component products of the bundle.

bundleComponent Fields | Description
productId | the productId of the bundle component product.
productQuantity | the quantity of bundle component product.
composition | the composition of the bundle component product.

variations : This section is for information regarding the variations for a product.
customFields : A map of custom field Code to value. (Optional)
nullCustomFields : A List of custom field Code's which currently have a value of Null. (Optional)

Note: the ID set in the request URI is not optional. It is not possible to get all Product's in a single call. The request can be limited to the context of a sales channel by the use of the query parameter contextChannelId (value channel id); only products assigned to this channel shall be returned.The Product OPTIONS message will programmatically explain how to download all Product's in multiple calls.

Note: to include customFields and nullCustomFields please see Include Optional Sections.

0 comments on commit 3eb42b4

Please sign in to comment.