Documentation Summary

API

Data Types

The API uses a number of its own enumerable data types for certain constructs.

CurrencyUnit

The API recognises Pounds, Euros and Dollars by default.

NameValueDescription
eUnknown0Unknown
ePound1UK Pound
eDollar2US Dollar
eEuro3EU Euro


Event

The events listed below correspond to the available callbacks.

Member nameValueDescription
OrderCreated0This event is called after an order is placed. If any approvals are required in the Order, this event will instead be triggered after all items in the Order have been approved or declined.
OrderReadyForProduction1This event is called after an Order is ready for production after approvals and payments.
OrderItemRendered2This event is called after an individual Order Item in an Order is rendered.


OrderItemStatus

Order Items can have a wide variety of states, however some should only be set manually rather than with the API.

NameValueDescription
Shipped0The OrderItem has been sent to its destination. The user will see the item marked as completed.
Unreviewed1The OrderItem has been ordered but is pending reveiw.
PendingData2The OrderItem is pending the arrival of data, possibly an external source.
PendingPrep3Pending manual actions from a site administrator.
Ready4The OrderItem is ready for production.
Sent5The OrderItem has been submitted for output generation, but has yet to be generated.
Rendered6The OrderItem has been generated but not yet produced.
Failed7An error has occured during output generation.
Packed8The OrderItem has been packed.
Printed9The Order Item has been produced and is ready to be sent.(MANUAL)
Rejected10The Order Item has been rejected. (MANUAL)