curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest/latest \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice for 3/2025 found and ingested successfully!",
"code": 201,
"data": null
}
Fetch only the current month’s rental invoice from Gmail and upload it to S3.
curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest/latest \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice for 3/2025 found and ingested successfully!",
"code": 201,
"data": null
}
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/azfar-imtiaz/PayPulse-Cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header.
Authorization: Bearer <token>
rental for this endpoint."Invoice for <month>/<year> found and ingested successfully!" — invoice was fetched and uploaded (HTTP 201)."Invoice for <month>/<year> has already been processed." — invoice already exists (HTTP 200)."Rental invoice for <month>/<year> has not been dispatched yet." — no matching email found in inbox (HTTP 204).201 when a new invoice is ingested, 200 when already processed, 204 when not yet available.null for this endpoint.| Status | Error code | Description |
|---|---|---|
400 | INVALID_JSON | The request body is not valid JSON. |
400 | MISSING_FIELDS | A required key is missing from the request. |
401 | INVALID_CREDENTIALS | The Authorization header is missing or the OAuth token is invalid. |
401 | TOKEN_EXPIRED | The JWT has expired. |
502 | DEPENDENCY_FAILURE | The Gmail API or a downstream service returned an error. |
500 | INTERNAL_SERVER_ERROR | An unexpected server-side error occurred. |
{
"error": {
"code": "DEPENDENCY_FAILURE",
"message": "Gmail API error"
}
}
curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest/latest \
--header 'Authorization: Bearer <token>'
{
"message": "Invoice for 3/2025 found and ingested successfully!",
"code": 201,
"data": null
}