Docs//
API reference
/- Get a document by ID
Document
Create a new document
List all documents
Get a document by ID
Retrieve a single document by its unique identifier.
Security
JWT
- Production serverhttps://api.glomopay.com/api/v1/document/{document_id}
curl -i -X GET \
https://api.glomopay.com/api/v1/document/doc_12345 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Document retrieved 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" }