Skip to content
Staircase

Finance

Metering and billing keyed to the same product identifier every endpoint definition carries.

Finance meters each invocation against the product API it called, using the identifier already present in that endpoint's definition. There is no separate billing catalogue to keep in step with the API catalogue, because they are the same identifier.

Price revisions are versioned per API, and vendor cost is reported alongside what was charged.

How it works

Metered units can be negative. That is what expresses a charge reversed when a call returned nothing usable — a credit rather than a suppressed record, so the ledger still shows the attempt.

Keeping the attempt visible matters for the waterfall: a vendor tried and returning nothing is exactly the event the ordering is tuned on.

Operations

Metrics

POST /metrics

Create Finance Metrics

createFinanceMetric

Create Finance Metric

This service enables storing finance metrics. The unit value is a required field that can be either positive or negative according to the direction of the transaction.

Request
application/json
{
  "product_api_identifier": "product_api_identifier_2",
  "product_price_identifier": "product_price_identifier_2",
  "product_identifier": "c5b45e21-6946-4110-bf83-8ca90fac5493",
  "transaction_id": "01G0KZARZ46W8KZ81277V5C0HA",
  "request_collection_id": "2I8JNKZARZ46W8KZ81277V5CASD",
  "response_collection_id": "328JNKZARZ46W8KZ81277V5SKDS",
  "company_name": "customer_comp",
  "price_unit_type": "transaction",
  "price_timing_type": "completion",
  "price_amount": 10,
  "price_amount_unit_type": "cents"
}
Response
application/json

Success response.

{
  "message": "metric created"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Request bodyapplication/json
11 fields
FieldTypeDescription
product_api_identifierrequiredstringUnique identifier for payable unitExample product_api_identifier_1
product_price_identifierrequiredstringUnique identifier for priceExample product_price_identifier_1
transaction_idstringTransactions in Staircase are containers for all the data related to an instance of a transaction type. They enable you to correlate the output of various products to a single transaction type, where the transaction type depends on your line of business. A transaction_id, when used properly, gives you a holistic view of the data related to the transaction you’ve assembled.Example 01G0KZARZ46W8KZ81277V5C0HA
request_collection_idstringUnique identifier for Staircase request collectionExample 2I8JNKZARZ46W8KZ81277V5CASD
response_collection_idstringUnique identifier for Staircase response collectionExample 328JNKZARZ46W8KZ81277V5SKDS
company_namestringCompany nameExample comp_name
price_unit_typerequiredstringThe unit of the platform where the price evaluation can be determined as relevantapi_calldatapointdocumentenvironmenthourimagepagepersonperson-hourpmpm-hourproductseatsubscriptiontransactionExample product
price_timing_typerequiredstringPrice is included into billing based on this defined schedule.completionmonthlyExample completion
product_identifierrequiredstringUnique identifier for productExample c5b45e21-6946-4110-bf83-8ca90fac5493
price_amountrequirednumberValue of the unit in selected unit price. This value can be negative or positive.Example 95
price_amount_unit_typerequiredstringUnit of the pricecentsExample cents
Response 201application/json
1 fields

Success response.

FieldTypeDescription
messagestringMessage response
Response 400application/json
1 fields

Error Response.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
POST /products/finance-service/custom_endpoint/create-finance-metric

Create Finance Metric

createFinanceMetric

Create finance metric

Create finance metric. Results will be saved in the output collection. Remember transaction_id and response_collection_id from the response to get the collection data from Persistence API: Retrieve Collection

Response collection example

{
 "metadata": {
 "version": 2,
 "validation": true,
 "product_name": "finance-service"
 },
 "transaction_id": "01GME0M8HH3TXS0STWANH32VRC",
 "collection_id": "01GME0M8KYYBNYQSEVB7MXKVXW",
 "data": {
 "finance_metrics": [
 {
 "@id": "01GQJPZJAFSMTB9EDYKGQ85VKK",
 "@type": "finance_metric",
 "has_finance_metrShow the rest
ic_identifier": { "has_value": "01GQJPZJAFSMTB9EDYKGQ85VKK" }, "has_collection_id": { "has_value": "" }, "has_organization_id": { "has_value": "john.doe@test.co" }, "has_produce_identifier": { "has_value": "customer" }, "has_product_api_identifier": { "has_value": "active" }, "has_transaction_id": { "has_value": "test-co-1" } } ] } } }
Request
application/json
{
  "request_data": {
    "finance_metrics": [
      {
        "has_transaction_id": {
          "has_value": "test-co-1"
        },
        "has_collection_id": {
          "has_value": "https://test-co-1.com"
        },
        "has_organization_id": {
          "has_value": "john.doe@test.co"
        },
        "has_produce_identifier": {
          "has_value": "customer"
        },
        "has_product_api_identifier": {
          "has_value": "product-api-identifier"
        }
      }
    ]
  }
}
Response
application/json

Successfully started flow invocation.

{
  "invocation_id": "9aefb465-90fb-4d50-8ae6-2df2b58373f4",
  "invocation_status": "STARTED",
  "product_flow_name": "product_flow_name_example",
  "transaction_id": "01F6NAMXWN2XVBD1YJ92A6S6R4",
  "request_collection_id": "01F6NAQ4894HPMCBGB4P0G95XK",
  "response_collection_id": "01F6NAQ4894HPMCBGB4P0G78HG",
  "options": {
    "dry_run": false
  },
  "tags": [
    "manual verification"
  ],
  "widget_url": "https://product-dev-productsbucket-1j472c4onqkxw.s3.amazonaws.com/widgets/063f5f"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Environment API Key.
Request bodyapplication/json
2 fields
FieldTypeDescription
callback_urlstring (uri)Callback URL.
request_datarequiredobjectRequest JSON body.
finance_metricsobject[]Finance metric filter
has_transaction_idobjectTransaction ID
has_valuestringTransaction IDExample 01GQJPZG07MMFTF6ZZ3BVK1ZFP
has_collection_idobjectCollection ID
has_valuestringCollection IDExample 01GQJPZFXPRR8QMR31CG92J27D
has_organization_idobjectOrganization ID
has_valuestringOrganization IDExample test-co-1@gmail.com
has_produce_identifierobjectProduct Identifier
has_valuestringProduct IdentifierExample customer
has_product_api_identifierobjectProduct API Identifier
has_valuestringProduct API IdentifierExample 62f5691e-7fd0-4728-ac3c-977dea07f338
Response 201application/json
12 fields

Successfully started flow invocation.

FieldTypeDescription
invocation_idrequiredstringInvocation ID.
invocation_statusrequiredstringThe status of the invocation.STARTED
transaction_idrequiredstringTransaction ID.
request_collection_idrequiredstringRequest collection ID.
response_collection_idrequiredstringResponse collection ID.
product_flow_namestringProduct flow name.
metadataobjectThe metadata of the invoked product flow.
callback_urlstringCallback URL.
request_dataobjectThe data for the request collection.
tagsstring[]List of tags.
optionsobjectAdditional information that should be passed to the connector but not be added to the request collection.
widget_urlstringProduct widget_url listening on the connector widget_url
Response 400application/json
1 fields

Bad request

FieldTypeDescription
messageone ofEither message or object with additional properties.
Response 403application/json
2 fields

Forbidden

FieldTypeDescription
messagestringRequest forbidden -- authorization will not help
urlstring (url)Indicates at which url the error occurs
Response 404application/json
1 fields

Partner, flow or execution not found

FieldTypeDescription
messagestringNothing matches the given URI
POST /metrics/query

Create Asynchronous Metric Query

create_async_query_execution

Create Asynchronous Query Execution

The service creates asynchronous query execution to retrieves a list of metrics given one or multiple filters. To retrieve all results, send the request with the same query parameters and next_token provided on the previous call until next_token does not appear in the response.

Request
application/json

Create asynchronous query execution

{
  "product_api_identifier": "c4c7a50e-ef10-4885-9a9d-2c04d7410084",
  "product_price_identifier": "ecb11b04-e99c-4610-8db1-990367c25883",
  "transaction_id": "01F2Q6WJXF5DK3ERTZ18JHSNE8",
  "start_date": "2022-04-11",
  "end_date": "2022-04-15"
}
Response
application/json

Ok.

{
  "query_id": "c62a1228-fae7-44c8-aebe-8706ecfb9fc4",
  "status": "IN_PROGRESS"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Request bodyapplication/json
11 fields
FieldTypeDescription
product_api_identifierstringUnique identifier for payable unitExample product_api_identifier_1
product_price_identifierstringUnique identifier for priceExample product_price_identifier_1
transaction_idstringTransactions in Staircase are containers for all the data related to an instance of a transaction type. They enable you to correlate the output of various products to a single transaction type, where the transaction type depends on your line of business. A transaction_id, when used properly, gives you a holistic view of the data related to the transaction you’ve assembled.Example 01G0KZARZ46W8KZ81277V5C0HA
request_collection_idstringUnique identifier for Staircase request collectionExample 2I8JNKZARZ46W8KZ81277V5CASD
response_collection_idstringUnique identifier for Staircase response collectionExample 328JNKZARZ46W8KZ81277V5SKDS
company_namestringCompany nameExample comp_name
price_unit_typestringThe unit of the platform where the price evaluation can be determined as relevantapi_calldatapointdocumentenvironmenthourimagepagepersonperson-hourpmpm-hourproductseatsubscriptiontransactionExample product
price_timing_typestringPrice is included into billing based on this defined schedule.completionmonthlyExample completion
product_identifierstringUnique identifier for the productExample 3f312801-e3bb-49c2-a59b-8e2c05958c1b
start_daterequiredstringIf provided, filters by start_date it must be used together with the end_date. Date must be in ISO8601 format.Example 2021-04-13
end_daterequiredstringIf provided, filters by end_date it must be used together with the start_date. Date must be in ISO8601 format.Example 2021-04-16
Response 201application/json
2 fields

Ok.

FieldTypeDescription
query_idstringUnique identifier for running query execution
statusstringStatus of the query execution
Response 400application/json
1 fields

Failed Creation.

FieldTypeDescription
messagestringMessage reason why the creation has failed
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
GET /metrics/query/{query_id}

Get Asynchronous Query Result

get_async_query_result

The service retrieves a list of metrics by given query id. To retrieve all results, send the next_token provided on the previous call until next_token does not appear in the response.

Response
application/json

Ok.

{
  "query_id": "fd99d4de-1632-487f-8576-2ee064e75b51",
  "status": "SUCCEEDED",
  "result_csv_file": "https://finance-athena-result-795294970345.s3.amazonaws.com/fd99d4de-1632-487f-8576-2ee064e75b51.csv&Expires=1659342953",
  "data": {
    "metrics": [
      {
        "product_api_identifier": "c4c7a50e-ef10-4885-9a9d-2c04d7410084",
        "product_price_identifier": "ecb11b04-e99c-4610-8db1-990367c25883",
        "transaction_id": "da2dbe64-33c0-4de2-b5a4-745f0b60ee4c",
        "host_environment": "documentation.staircaseapi.com",
        "date": "2022-08-01 03:32:42.000",
        "company_name": "bohr",
        "price_unit_type": "subscription",
        "price_timing_type": "monthly",
        "price_amount": "10000.0",
        "price_amount_unit_type": "cents"
      },
      {
        "product_api_identifier": "df7d610c-0e6e-4bbd-86c0-7de39e29dd8a",
        "product_price_identifier": "6c58cf4d-0d97-49dd-8d1a-fd44387734e4",
        "transaction_id": "aaa55ebb-43e8-4722-96cd-050bf2b5c29c",
        "host_environment": "documentation.staircaseapi.com",
        "date": "2022-08-01 03:32:20.000",
        "company_name": "bohr",
        "price_unit_type": "subscription",
        "price_timing_type": "monthly",
        "price_amount": "50000.0",
        "price_amount_unit_type": "cents"
      },
      {
        "product_api_identifier": "6ee48f0c-7bd8-43de-9bf9-afce5e85bd08",
        "product_price_identifier": "4159a209-bc65-48eb-8735-7cb3600d7fa0",
        "transaction_id": "2c71d744-9589-4812-a373-e4bcec7df5c5",
        "host_environment": "documentation.staircaseapi.com",
        "date": "2022-08-01 03:28:51.000",
        "company_name": "bohr",
        "price_unit_type": "subscription",
        "price_timing_type": "monthly",
        "price_amount": "100000.0",
        "price_amount_unit_type": "cents"
      }
    ]
  }
}
Parameters
4
ParameterTypeExampleDescription
query_id required string path 1fc23e2-b13e-405a-a3de-a5228950e3b8 Unique query execution id
x-api-key required string header <redacted> API key
limit integer query 150 The number of results to return in this request.
next_token string query 000000000000 The token for the next set of items to return. (You received this token from a previous call. If you have reached the end of the stream, the returned token is null.)
Response 200application/json
3 fields

Ok.

FieldTypeDescription
statusstringStatus of the query execution
result_csv_filestringURL for query result in CSV format
metricsobject[]Metrics
host_environmentstringEnvironment host where the product is deployed.
product_api_identifierstringUnique identifier for payable unit
product_price_identifierstringUnique identifier for price
transaction_idstringTransaction ID
request_collection_idstringUnique identifier for Staircase request collection
response_collection_idstringUnique identifier for Staircase response collection
company_namestringCompany name
price_unit_typestringThe unit of the platform where the price evaluation can be determined as relevant
price_timing_typestringPrice is included into billing based on this defined schedule.
price_amountstringValue of the unit in selected unit price. This value can be negative or positive.
price_amount_unit_typestringUnit of the price
Response 400application/json
1 fields

Error Response.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 504application/json
1 fields

504 Timeout response.

FieldTypeDescription
messagestringEndpoint request timed out

Aggregated Metric Migrations

POST /migrations

Create Aggregated Finance Metric Migration Configurations

createFinanceMigrationConfigurations

Create Finance Migration Configurations

This service creates migration configurations to allow migrating aggregated finance data to another environment. Aggregated finance data is needed for generating finance reports from them.

Request
application/json
{
  "migration_configuration_name": "test_name",
  "target_environment_api_key": "apikey",
  "target_environment_domain": "documentation.staircaseapi.com"
}
Response
application/json

Success response.

{
  "message": "migration configuration created"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Request bodyapplication/json
3 fields
FieldTypeDescription
migration_configuration_namerequiredstringMigration configuration nameExample test-migration
target_environment_domainrequiredstringDomain of target environmentExample documentation.staircaseapi.com
target_environment_api_keyrequiredstringAPI key of given target environmentExample 1111111-22222-333333
Response 201application/json
1 fields

Success response.

FieldTypeDescription
messagestringMessage response
Response 400application/json
1 fields

Error Response.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
GET /migrations

List Aggregated Finance Metric Migration Configurations

listFinanceMigrationConfigurations

List Finance Migration Configurations

This service allows retrieving Finance product migration configuration

Response
application/json

Ok.

{
  "migration_configurations": [
    {
      "migration_configuration_name": "test_name",
      "target_environment_api_key": "apikey",
      "target_environment_domain": "template.staircaseapi.com"
    }
  ]
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Response 200application/json
1 fields

Ok.

FieldTypeDescription
migration_configurationsobject[]Configurations
migration_configuration_namestringUnique configuration nameExample test_configuration
target_environment_api_keystringTarget environment API keyExample 111111-222222-333333
target_environment_domainstringTarget environment domainExample documentation.staircaseapi.com
Response 400application/json
1 fields

Error response example

FieldTypeDescription
ErrorstringError
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
PUT /migrations/{migration_configuration_name}

Update Aggregated Finance Metric Migration Configurations

updateFinanceMigrationConfigurations

Update Finance Migration Configurations

This service updates migration configuration.

Request
application/json
{
  "target_environment_api_key": "apikey",
  "target_environment_domain": "documentation.staircaseapi.com"
}
Response
application/json

Success response.

{
  "message": "migration configuration updated"
}
Parameters
3
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
migration_configuration_name required string path test_configuration_name Unique configuration name
x-api-key required string header <redacted> API key
Request bodyapplication/json
2 fields
FieldTypeDescription
target_environment_domainrequiredstringDomain of target environmentExample documentation.staircaseapi.com
target_environment_api_keyrequiredstringAPI key of given target environmentExample 1111111-22222-333333
Response 201application/json
1 fields

Success response.

FieldTypeDescription
messagestringMessage response
Response 400application/json
1 fields

Error Response.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
GET /migrations/{migration_configuration_name}

Get Aggregated Finance Metric Migration Configurations

getFinanceMigrationConfigurations

Get Finance Migration Configurations

This service allows retrieving Finance product migration configuration

Response
application/json

Ok.

{
  "migration_configuration_name": "test_name",
  "target_environment_api_key": "apikey",
  "target_environment_domain": "documentation.staircaseapi.com"
}
Parameters
3
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
migration_configuration_name required string path test_configuration_name Unique configuration name
x-api-key required string header <redacted> API key
Response 200application/json
3 fields

Ok.

FieldTypeDescription
migration_configuration_namestringUnique configuration nameExample test_configuration
target_environment_api_keystringTarget environment API keyExample 111111-222222-333333
target_environment_domainstringTarget environment domainExample documentation.staircaseapi.com
Response 400application/json
1 fields

Error response example

FieldTypeDescription
ErrorstringError
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError
DELETE /migrations/{migration_configuration_name}

Delete Aggregated Finance Metric Migration Configurations

deleteFinanceConfigurations

Delete Finance Configurations

This service allows deleting Finance product configuration

Response
application/json

Ok.

{
  "message": "migration configuration deleted"
}
Parameters
3
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
migration_configuration_name required string path test_configuration_name Unique configuration name
x-api-key required string header <redacted> API key
Response 200application/json
1 fields

Ok.

FieldTypeDescription
messagestringUnique configuration nameExample test_configuration
Response 400application/json
1 fields

Error response example

FieldTypeDescription
ErrorstringError
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 422application/json
2 fields

Forbidden

FieldTypeDescription
messagestringError message
errorstringError

Reports

POST /reports/finance

Create Finance Metric Reports

createFinanceMetricReport

Create Finance Metric Report

This service allows the creation of financial reports for given dates. Request body allows filtering reports by some fields. This service starts asynchronous report execution and returns a unique report ID for checking report execution status and getting report results if report execution is finished.

Request
application/json
{
  "product_api_identifiers": [
    "id_1",
    "id_2"
  ],
  "product_price_identifiers": [
    "product_price_identifier_1",
    "product_price_identifier_2"
  ],
  "start_date": "2021-04-13",
  "end_date": "2021-05-13"
}
Response
application/json

Report execution started

{
  "report_id": "9a6aa8-4f2-400d-9451-e1e127485"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Request bodyapplication/json
5 fields
FieldTypeDescription
product_api_identifiersarrayList of API ID
product_price_identifiersarrayList of product price identifier
price_amount_unit_typestringPrice unitcentsExample cents
start_daterequiredstringStart date in ISO8601 formatExample 2021-04-13
end_daterequiredstringEnd date in ISO8601 formatExample 2021-05-13
Response 202application/json
1 fields

Report execution started

FieldTypeDescription
report_idstringReport ID
Response 400application/json
1 fields

Bad request syntax or missed a required field

FieldTypeDescription
messagestringError message
Response 401application/json
1 fields

Unauthorized, Bad credentials.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 405application/json
1 fields

Method not allowed.

FieldTypeDescription
messagestringError message
Other responses

422

POST /reports/finance/aggregated

Create Aggregated Finance Metric Reports

createAggregatedFinanceMetricReport

Create Aggregated Finance Metric Report

This service allows the creation of financial reports from aggregated metric data for given dates. In order to get a finance report for multiple environments, please have a look at the migrations(/migrations) service for migrating aggregated finance metrics. Request body allows filtering reports by some fields. This service starts asynchronous report execution and returns a unique report ID for checking report execution status and getting report results if report execution is finished. There is no retention period for aggregated finance metrics.

Request
application/json
{
  "product_api_identifiers": [
    "id_1",
    "id_2"
  ],
  "environments": [
    "documentation.staircaseapi.com"
  ],
  "product_price_identifiers": [
    "product_price_identifier_1",
    "product_price_identifier_2"
  ],
  "start_date": "2021-04-13",
  "end_date": "2021-05-13"
}
Response
application/json

Report execution started

{
  "report_id": "9a6aa8-4f2-400d-9451-e1e127485"
}
Parameters
1
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
Request bodyapplication/json
6 fields
FieldTypeDescription
product_api_identifiersarrayList of API ID
environmentsarrayList of environment names
product_price_identifiersarrayList of product price identifier
price_amount_unit_typestringPrice unitcentsExample cents
start_daterequiredstringStart date in ISO8601 formatExample 2021-04-13
end_daterequiredstringEnd date in ISO8601 formatExample 2021-05-13
Response 202application/json
1 fields

Report execution started

FieldTypeDescription
report_idstringReport ID
Response 400application/json
1 fields

Bad request syntax or missed a required field

FieldTypeDescription
messagestringError message
Response 401application/json
1 fields

Unauthorized, Bad credentials.

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Bad request syntax or forbidden request

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 405application/json
1 fields

Method not allowed.

FieldTypeDescription
messagestringError message
Other responses

422

GET /reports/{report_id}

Get Finance Report Result

getFinanceReportResult

This service retrieves the status of a Report Execution for a given report_id. Status = IN_PROGRESS, SUCCEEDED, or FAILED. Continue to ping this service until you receive a status = SUCCEEDED or FAILED. Created report results have one month retention period.

Response
application/json

Report status

{
  "report_id": "979a6aa8-4f2-400d-9451-80ee1e127485",
  "status": "SUCCEEDED",
  "created_at": "2022-05-06:11:53:38",
  "finished_at": "2022-05-06:11:55:10",
  "expired_at": "1654864684",
  "report_data": {
    "total": 0,
    "price_amount_unit_type": "cents",
    "environments": []
  }
}
Parameters
2
ParameterTypeExampleDescription
x-api-key required string header <redacted> API key
report_id required string path 979a6aa8-4f2-400d-9451-80ee1e127485 Report ID
Response 200application/json
6 fields

Report status

FieldTypeDescription
report_idstringReport ID
statusstringIN_PROGRESS, FAILED, or SUCCEEDEDFAILEDIN_PROGRESSSUCCEEDED
report_dataobjectReport payload
created_atstringCreate date of report executionExample 2022-05-06:11:53:38
finished_atstringFinish date of report executionExample 2022-05-06:11:55:10
expired_atstringExpiration timestamp in string formatExample 1654864684
Response 400application/json
1 fields

Bad request syntax or missed a required field

FieldTypeDescription
messagestringError message
Response 403application/json
1 fields

Method not allowed.

FieldTypeDescription
messagestringError message
Response 404application/json
1 fields

Not found.

FieldTypeDescription
messagestringError message
Response 405application/json
1 fields

Method not allowed.

FieldTypeDescription
messagestringError message
Other responses

422

Errors

400401403404405422504

Type to search.