API Reference
/- Create a new document
List all documents
Get a document by ID
Document
Create a new document
Security
JWT
POST
curl -i -X POST \
https://api.glomopay.com/api/v1/document \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F document_name=invoice \
-F file=stringDocument created successfully
The URL to preview the document.
Example:"https://glomopay-service-staging-documents.s3.ap-south-1.amazonaws.com/12345_invoice"
The status of file you uploaded. Values can be uploaded, approved and rejected.
Example:"uploaded"
Timestamp representing when the document was created
Example:"2021-06-01T12:00:00Z"
Response
{ "id": "doc_nYUqLpuYQ0M8", "document_name": "invoice", "file_name": "invoice_BC8tFdE.pdf", "preview_url": "https://glomopay-service-staging-documents.s3.ap-south-1.amazonaws.com/12345_invoice", "status": "uploaded", "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }