Skip to content

Document

Document resource represents the documents details uploaded. This document is used in payin, payout, etc.

Document

idstringread-only

The unique identifier for the Document.

Example:"doc_nYUqLpuYQ0M8"
document_namestring

The name of document

Example:"invoice"
file_namestringread-only

The name of the file you uploaded.

Example:"invoice_BC8tFdE.pdf"
preview_urlstringread-only

The URL to preview the document.

Example:"https://glomopay-service-staging-documents.s3.ap-south-1.amazonaws.com/12345_invoice"
statusstringread-only

The status of file you uploaded. Values can be uploaded, approved and rejected.

Example:"uploaded"
created_atstring, (date-time)read-only

When the document was created, as an ISO 8601 date-time in UTC.

Example:"2021-06-01T12:00:00Z"
updated_atstring, (date-time)read-only

When the document was last updated, as an ISO 8601 date-time in UTC.

Example:"2021-06-01T12:00:00Z"
{ "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" }