Create a StatementJob
This endpoint creates a StatementJob for a single bill within an Organization using the Bill UUID.
The Bill Statement is generated asynchronously:
- The default format for generating the Statement is in JSON format and according to the Bill Statement Definition you've specified at either Organization level or Account level.
- If you also want to generate the Statement in CSV format, use the includeCsvFormat request body parameter.
- The response body provides a time-bound pre-signed URL, which you can use to download the JSON format Statement.
- When you have generated a Statement for a Bill, you can also obtain a time-bound pre-signed download URL using either the Retrieve Bill Statement in JSON Format and Retrieve Bill Statement in CSV Format calls found in the Bill section of this API Reference.
Notes:
- If the response to the Create StatementJob call shows the statementJobStatus as PENDING or RUNNING, you will not receive the pre-signed URL in the response. Wait a few minutes to allow the StatementJob to complete and then use the Get StatmentJob call in this section to obtain the pre-signed download URL for the generated Bill Statement.
- When you have submitted a StatementJob and a Bill Statement has been generated, you can also download the Statement directly from a Bill Details page in the Console. See Working with Bill Statements in our user Documentation.
Path parameters
The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.
Request body
Response
Returns the created StatementJob
Changes
Changed in 2 of the 10 revisions of this API.14
- ▲
the
allOf[subschema #2]/presignedJsonStatementUrlresponse's property type/format changed fromstring/urltostring/for status200response-property-type-changed
- ○
added the optional property
allOf[subschema #2]/csvStatementStatusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #2]/jsonStatementStatusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[subschema #2]/presignedCsvStatementUrlto the response with the200statusresponse-optional-property-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
This revision also has 53 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○