Schedule a meeting

Amazon Invoice

URL

PROD https://api-amazon.skypostal.com

Endpoint

POST /api/pdf/invoice

Request Credentials

Headers

X-User-Code

String - Required

This is the X-User-Code provided by Skypostal.

X-App-userUuid

String - Required

This is the X-App-userUuid provided by Skypostal.

Authentication

Bearer Token

String - Required

Use Bearer Token generated in the User Login endpoint.

Body

FileName

Xml Field

File Name.

TrackingId

Xml Field

Tracking Id.

invoice

Xml Field

PDF encoding base64.

The command should be run as in the following example:

<InvoiceMessage messageType="Invoice">
    <FileName>fileName.pdf</filename>
    <TrackingId>SKAMZUS00299XXXXX</TrackingId>
    <invoice encoding="base64">
        <value>
            PDF BASE64
        </value>
    </invoice>
</InvoiceMessage>

The command will return the following format:

{
    "message": "Successful",
    "id": "686dddea3b6305XXXXXX"
}