post
https://sandbox-api.coris.ai/api/v0_2/establishment//merchant_profiler_pdf_report/
Use this when you hold an establishment.id: it starts a job to build a PDF report of an establishment's data, and returns a request_id. Use it when you do not want to hold a connection open. To build the report in one call, use Get a PDF report with no request_id. For an account, use Request an account PDF report.
Lifecycle: POST returns 201 and a request_id. Poll the GET route with that request_id: 425 means not ready, and 200 returns pdf_report_url. If you send callback_url, Coris posts the result when it is done, as Handle async requests explains.
sequenceDiagram accTitle: Request a PDF report sequence diagram accDescr: Request a PDF report. You send POST .../merchant_profiler_pdf_report/. Coris replies 201 request_id. You send GET ?request_id=... Coris replies 425 no data yet. You send GET ?request_id=... Coris replies 200 complete. Coris sends POST callback_url, if sent. participant You participant Coris You->>Coris: POST .../merchant_profiler_pdf_report/ Coris-->>You: 201 request_id You->>Coris: GET ?request_id=... Coris-->>You: 425 no data yet You->>Coris: GET ?request_id=... Coris-->>You: 200 complete Coris->>You: POST callback_url, if sent
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Callback