🖼️Upload shipping label - for print only order

Upload shipping label PDF

POST /api/vendor/files/shipping-label

ONLY ALLOW PDF

Headers

Name
Value

Content-Type

multipart/form-data

X-Access-Key

Your key pairs

Body - FormData

Name
Type
Description

file

Binary

Your local file

Example in JS



const handleUpload = async ({ file, onSuccess, onError }) => {
	try {
		const formData = new FormData()
		formData.append('file', file)

		// Replace this with upload URL
		const data = await axios.post("endpoint",formData, {
			headers: {
				"X-Access-Key": "Your key pair"
			}})
		})
		onSuccess(data)
				
			
	} catch (error) {
		onError(error)	
	}
}

Response

{
    "data": "https://rapid-labels.rapidprinttee.com/HRN_00000325_Label-124a",
    "message": "Upload success",
    "code": 0
}

Last updated