Spreadshirt Subscriptions API
This api offers you webhook subscriptions that will notify you about changes with your order via a POST request.### Acknowledge notificationsNotifications are following the at *least once principal* and therefore are guaranteed to bedelivered at least once. Part of this principal is also that notifications needs to be acknowledged with* a status code of 202* a response within 8 seconds* the payload `[accepted]`If any of the above criteria does not match, the notification is handled as not received and will be sent againat a later stage. The retry mechanism will increase the delay over time to not flood your system.### Validate authenticity of notificationsWebhook will make notifications with the `X-SPRD-SIGNATURE` header if a subscription was setup with a secret.Consumers can protect against counterfeit requests by comparing the provided signature with what they'vecalculated on their side. The signature is a `SHA256 HMAC` over the request body and is encoded in `Base64`.# EventsIf you register a subscription, you will get the following events, in case there is a state change.## Article.added EventIf a new article is added to a point of sale, you will get the following notification.If you want to check how the article object looks like go to the link: [getArticle](#operation/getArticle)``` { "eventType": "Article.added", "data": { "pointOfSaleId": "123", "article": "...object" } }```## Article.updated EventIf a existing article is updated, you will get the following notification.If you want to check how the article object looks like go to the link: [getArticle](#operation/getArticle)``` { "eventType": "Article.updated", "data": { "pointOfSaleId": "123", "article": "...object" } }```## Article.removed EventIf a article is removed from a point of sale, you will get the following notification.If you want to check how the article object looks like go to the link: [getArticle](#operation/getArticle)``` { "eventType": "Article.removed", "data": { "pointOfSaleId": "123", "article": "...object" } }```## Order.cancelled EventIf your order is cancelled, you will get the following notification.If you want to check how the order object looks like go to the link: [getOrder](#operation/getOrder)``` { "eventType": "Order.cancelled", "data": { "pointOfSaleId": "123", "order": "...object" } }```## Order.processed EventIf your order is completely processed, you will get the following notification.If you want to check how the order object looks like go to the link: [getOrder](#operation/getOrder)``` { "eventType": "Order.processed" "data": { "pointOfSaleId": "123", "order": "...object" } }```## Order.needs-action EventIf an error occurs in your order, you will get the following notification.If you want to check how the order object looks like go to the link: [getOrder](#operation/getOrder)``` { "eventType": "Order.needs-action" "data": { "pointOfSaleId": "123", "errorReason": "string" "order": "...object" } }```## Shipment.sent EventIf a part of your order is shipped, you will get the following notification.If you want to check how the order object looks like go to the link: [getShipments](#operation/getShipments)``` { "eventType": "Shipment.sent", "data": { "pointOfSaleId": "123", "shipment": "...object" } }```# Simulate EventsSimulate order events by sending us a POST request. You can use this feature for development to trigger some of the available events,without modifying the orders.It is available only for our staging environment.### How do I use simulated Events?To use this feature you need to create an extra account on https://app.spreadconnect-staging.app and get a **Spreadconnect API Key** for this account. See step 2 and 3 in the **Authentication** section. To send requests to the Spreadconnect API on staging you need use https://rest.spreadconnect-staging.app as the base url. Also you will need to use the Spreadconnect API key from your staging account in the header of your request to authenticate it. ### What is staging? Staging is a test environment separate from the live environment. The data in the staging environment is for testing purposes only. Adding, manipulating or deleting articles and orders in the staging environment does not have any real world effects. An order that is put into production in the staging environment will not actually get produced and shipped.Also note that part of the content of the payload you get from simulated events is mocked and does not reflect the exact data which would be send if the real events would be triggered automatically.
Spreadshirt Subscriptions API is one of 8 APIs that Spreadshirt publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Subscription. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.
This API exposes 6 operations across 5 paths, and defines 1 schema. It is described by OpenAPI 3.2.0, at version 0.1.0.
Requests are made against a single base URL, https://api.spreadconnect.app.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Spreadshirt Subscriptions API declares
1 security scheme
for authenticating requests.
An API key is passed in the header as X-SPOD-ACCESS-TOKEN (access_token).
access_token— It's necessary to have an authentication token from Spreadconnect. You can generate this token in your Spreadconnect web application. You have to send this tok…
Paths & Operations 6
Across 5 paths, the API surfaces 6 operations — 1 DELETE, 1 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.
This api offers you webhook subscriptions that will notify you about changes with your order via a POST request. Acknowledge notifications Notifications are following the at least…
Schemas 1
The contract defines 1 schema that model the data the API accepts and returns. The most detailed is Subscription (4 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Spreadshirt 7
Other APIs Spreadshirt publishes across the network.
This is an independent, third-party profile of Spreadshirt Subscriptions API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.