Creates a pending proof-of-delivery document before creating a self-fulfilled shipment. Upload the file with every returned upload_headers entry, including Content-Type (the requested filetype), poll /shipments/documents/{file_id} until validation succeeds, then supply file_id to /shipments.
Security
bearerAuth or basicAuth
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/shipments/documents
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/shipments/documents
curl -i -X POST \
https://docs.resolvepay.com/_mock/merchant-api/openapi/shipments/documents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filename": "proof_of_delivery.pdf",
"filetype": "application/pdf"
}'Pending shipment document upload request.
Stable storage URL for the staged document.
Example:"https://bucket.s3.amazonaws.com/1234567890-proof_of_delivery.pdf"
Presigned S3 URL for uploading the file. Use this URL to PUT the file content.
Example:"https://bucket.s3.amazonaws.com/1234567890-proof_of_delivery.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
Response
{ "id": "string", "file_id": "string", "url": "https://bucket.s3.amazonaws.com/1234567890-proof_of_delivery.pdf", "upload_url": "https://bucket.s3.amazonaws.com/1234567890-proof_of_delivery.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&...", "upload_expires_at": "2019-08-24T14:15:22Z", "object_key": "string", "transfer_method": "presigned_upload", "upload_headers": { "property1": "string", "property2": "string" }, "validation_profile": "merchant_invoice_shipment_document_default" }