Amazon Invoice
URL
PROD https://api-amazon.skypostal.com
Endpoint
POST /api/pdf/invoice
Request Credentials
Headers | |
---|---|
| String - Required This is the X-User-Code provided by Skypostal. |
| String - Required This is the X-App-userUuid provided by Skypostal. |
Authentication | |
---|---|
| String - Required Use Bearer Token generated in the User Login endpoint. |
Body | |
---|---|
| Xml Field File Name. |
| Xml Field Tracking Id. |
| 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"
}