curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest \
--header 'Authorization: Bearer <token>'
{
"message": "Rental invoices ingested successfully!",
"code": 200,
"data": {
"invoiceCount": 3
}
}
Fetch all rental invoice PDFs from the user’s connected Gmail account and upload them to S3.
curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest \
--header 'Authorization: Bearer <token>'
{
"message": "Rental invoices ingested successfully!",
"code": 200,
"data": {
"invoiceCount": 3
}
}
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."Rental invoices ingested successfully!" or "No rental invoices found for this user."200 on success.null when no new invoices were found. Otherwise contains the fields below.Hide properties
| 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 returned an error. |
502 | GMAIL_TOKEN_EXPIRED | The Gmail OAuth refresh token has expired and the account must be re-connected. |
500 | INTERNAL_SERVER_ERROR | An unexpected server-side error occurred. |
{
"error": {
"code": "GMAIL_TOKEN_EXPIRED",
"message": "Gmail account needs to be re-connected"
}
}
curl --request POST \
--url https://api.paypulse.io/v1/invoices/rental/ingest \
--header 'Authorization: Bearer <token>'
{
"message": "Rental invoices ingested successfully!",
"code": 200,
"data": {
"invoiceCount": 3
}
}