CloudSignal Webhooks
This documentation describes the CloudSignal Webhooks v2.0
Getting started
To get started with Cloudprinter please contact us at info@cloudprinter.com to get your account created. To each account is associated an API key, which is used as authentication in all API calls. Each webhook request includes a Webhook API key, which is different from the account API key. This Webhook API key sould be validated on each request.
Basics
RESTful API
The CloudSignal Webhooks is RESTful. All calls are implemented as HTTP post and TLS encrypted. The HTTP response code 200 is expected on positive calls, all other response codes is considered as error.
Request Data
All request data posted is in JSON objects. The documentation for each webhook describes the request data parameters in detail.
Return Data
No return data is expected and will be ignored.
Your RESTful API endpoint
Each client can have one RESTful API endpoint for use with CloudSignal Webhooks. The endpoint URL is configured by Cloudprinter.
Retry
CloudSignal Webhooks will retry sending signals if HTTP status 200 or 204 is not returned. Max 100 attempts over 7 days.
Signals
Changes from v1.1 to v2.0
The following list describes the changes made from version 1.1 and 2.0 of the CloudSignal Webhooks. When updating from 1.1 to 2.0 please go through these changes. The CloudSignal Webhooks v2.0 will not be active until activated in CloudAdmin.
- the parameter
order
now contains full Cloudprinter order id. - the parameter
item
now contains the full Cloudprinter item id. - the parameter
order_reference
has been added to all JSON requests and contains the clients order reference id. - the parameter
item_reference
has been added to all JSON requets except CloudprinterOrderValidated and contains the clients item reference id. - the parameter
shipping_option
has been added to ItemShipped. - the parameter
datetime
has been updated to ISO 8691 format.