POST
/
reports
/
{report_id}
/
executions
/
{report_execution_id}
/
url
using Gr4vy;
using Gr4vy.Models.Components;

var sdk = new Gr4vySDK(
    id: "example",
    server: SDKConfig.Server.Sandbox,
    bearerAuthSource: Auth.WithToken(privateKey),
    merchantAccountId: "default"
);

var res = await sdk.Reports.Executions.UrlAsync(
    reportId: "4d4c7123-b794-4fad-b1b9-5ab2606e6bbe",
    reportExecutionId: "003bc416-f32a-420c-8eb2-062a386e1fb0"
);

// handle response
{
  "url": "https://example.com/download/report.csv?signature=abc123",
  "expires_at": "2024-06-01T00:00:00.000Z"
}

This endpoint requires the reports.read scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-gr4vy-merchant-account-id
string | null

The ID of the merchant account to use for this request.

Examples:

"default"

Path Parameters

report_id
string
required

The ID of the report to retrieve a URL for.

Examples:

"4d4c7123-b794-4fad-b1b9-5ab2606e6bbe"

report_execution_id
string
required

The ID of the execution of a report to retrieve a URL for.

Examples:

"003bc416-f32a-420c-8eb2-062a386e1fb0"

Response

200
application/json

Successful Response

The response is of type object.