Creates a pending credit note document and returns a presigned upload request. Upload the document with every returned upload_headers entry, including Content-Type (the requested filetype), then use document_id as merchant_credit_note_document_id when creating the credit note after validation succeeds.
Security
bearerAuth or basicAuth
Document metadata used to request a credit note attachment upload.
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/credit-notes/documents
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/credit-notes/documents
curl -i -X POST \
https://docs.resolvepay.com/_mock/merchant-api/openapi/credit-notes/documents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filename": "credit-note.pdf",
"filetype": "application/pdf"
}'Pending credit note document upload request.
Response
{ "id": "string", "document_id": "string", "url": "http://example.com", "upload_url": "http://example.com", "upload_expires_at": "2019-08-24T14:15:22Z", "object_key": "string", "transfer_method": "presigned_upload", "upload_headers": { "property1": "string", "property2": "string" }, "validation_profile": "merchant_credit_note_document_default" }