openapi: 3.1.0
info:
title: Shipments Address Customs Documents Download API
version: 3.0.0
description: The Shipments API allows you to create and announce, retrieve, and cancel outgoing shipments and their associated parcels within the Sendcloud platform.
contact:
name: Sendcloud API Support
email: contact@sendcloud.com
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://panel.sendcloud.sc/api/v3
description: Sendcloud Production
tags:
- name: Customs Documents Download
paths:
/customs_declaration/normal_printer/{parcel_id}:
parameters:
- $ref: '#/components/parameters/path-parcel-id'
get:
operationId: sc-public-v2-scp-get-customs_document_normal_printer
security:
- HTTPBasicAuth: []
- OAuth2ClientCreds: []
x-mint:
href: /api/v2/labels/retrieve-a-customs-declaration-pdf
content: "\n **API v2 is entering maintenance mode.** New users should start with API v3 to access our latest features and improved performance. Already using v2? Don't worry, your current integration remains fully functional. Read more about [maintenance mode](/docs/getting-started/api-version-guide), or check out the [migration guide for API v3](/docs/getting-started/migration-guidelines-for-api-v3).\n"
summary: Retrieve a customs declaration PDF
description: Retrieve the customs documents associated with a label in PDF format for a normal printer.
tags:
- Customs Documents Download
responses:
'200':
$ref: '#/components/responses/customs_pdf_document_response'
'400':
$ref: '#/components/responses/error_400_bad_request'
'404':
$ref: '#/components/responses/error_404_not_found'
/customs_declaration/normal_printer:
parameters:
- $ref: '#/components/parameters/path-parcel-ids'
- $ref: '#/components/parameters/query-start-from'
get:
operationId: sc-public-v2-scp-get-customs_document_multiple_normal_printer
security:
- HTTPBasicAuth: []
- OAuth2ClientCreds: []
summary: Retrieve multiple customs declaration PDFs
x-mint:
href: /api/v2/labels/retrieve-multiple-customs-declaration-pdfs
content: "\n **API v2 is entering maintenance mode.** New users should start with API v3 to access our latest features and improved performance. Already using v2? Don't worry, your current integration remains fully functional. Read more about [maintenance mode](/docs/getting-started/api-version-guide), or check out the [migration guide for API v3](/docs/getting-started/migration-guidelines-for-api-v3).\n\n\n\n This endpoint is deprecated as of Mon, 08 Jan 2024 00:00:00 GMT. We recommend using the [Retrieve parcel documents](/api/v2/parcel-documents/retrieve-parcel-documents) endpoint instead.\n"
description: Retrieve PDF customs documents suitable for normal printers for multiple different parcels at the same time.
tags:
- Customs Documents Download
responses:
'200':
$ref: '#/components/responses/customs_pdf_document_response'
'400':
$ref: '#/components/responses/error_400_bad_request'
'404':
$ref: '#/components/responses/error_404_not_found'
deprecated: true
components:
parameters:
path-parcel-id:
schema:
type: integer
minimum: 1
name: parcel_id
in: path
description: Unique parcel identifier
required: true
example: 1
query-start-from:
schema:
type: integer
minimum: 0
maximum: 3
name: start_from
in: query
required: true
description: 'The position of the label on an A4 page.
0 - Top left
1 - Top right
2 - Bottom left
3 - Bottom right'
path-parcel-ids:
schema:
type: array
minLength: 1
items:
type: integer
name: ids
in: query
description: Comma separated parcel ids
required: true
explode: false
example:
- 1
- 2
- 3
responses:
customs_pdf_document_response:
description: OK
content:
application/pdf:
schema:
type: string
format: binary
title: Customs document in PDF format
description: Customs PDF document ready to print
headers:
Deprecation:
schema:
type: string
example: Mon, 8 Jan 2024 00:00:00 GMT
Sunset:
schema:
type: string
example: Monday, 8 Jul 2024 00:00:00 GMT
error_404_not_found:
description: Not found
content:
application/json:
schema:
description: ''
type: object
example: {}
example: {}
error_400_bad_request:
description: Bad request
content:
application/json:
schema:
description: ''
type: object
properties:
message:
type: string
title: Error response message
securitySchemes:
HTTPBasicAuth:
type: http
description: Basic Authentication using API key and secrets is currently the main authentication mechanism.
scheme: basic
OAuth2ClientCreds:
type: oauth2
description: OAuth2 is a standardized protocol for authorization that allows users to share their private resources stored on one site with another site without having to provide their credentials. OAuth2 Client Credentials Grant workflow. This workflow is typically used for server-to-server interactions that require authorization to access specific resources.
flows:
clientCredentials:
tokenUrl: https://account.sendcloud.com/oauth2/token/
scopes:
api: Default OAuth scope required to access Sendcloud API.