For the complete documentation index, see llms.txt. This page is also available as Markdown.

Batch Ordering

Batch ordering allows Bloom's partners to pull credit data for multiple consumers at a time on some predefined cadence.

To get started with batch ordering for your use case, follow these steps:

1. Create a Subscription

In order to start batch ordering, you must first create a Subscription.

To create the subscription, you'll need to send a POST request to our Create Subscription endpoint (replacing all {{var}} with your variables):

curl --location --request POST 'https://sandbox.bloomcredit.dev/v2/data-access/subscriptions' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": {
        "type": "subscription",
        "attributes": {
            "organization_id": "{{organization_id}}",
            "sku": "{{sku_name}}",
            "frequency": "WEEKLY"
        }
    }
}'
POST /v2/data-access/subscriptions/ HTTP/1.1
Host: sandbox.bloomcredit.dev
Authorization: Bearer {{access_token}}
Content-Type: application/json
{
    "data": {
        "type": "subscription",
        "attributes": {
            "organization_id": "{{portfolio_id}}",
            "sku": "{{sku_name}}",
            "output_credentials": "test",
            "frequency": "WEEKLY"
        }
    }
}

Subscription

A subscription encapsulates the data:

  • Frequency (DAILY / WEEKLY / BIWEEKLY / QUADWEEKLY )

The Frequency will be how often the batch order runs for the group of consumers assigned to it

2. Add Consumers to Subscription

After you've created the Subscription, you'll need to add Consumers you want data fetched for into the Subscription, so that when it runs it will fetch data for those consumers. To do this, you'll need to send a PATCH request to our Subscription Consumers endpoint:

Removing Consumers from an existing Subscription

You can change the operation applied from the PATCH request simply by switching the attribute consumers_to_add with a list of consumers with the name consumers_to_remove

3. Get Subscription with Consumers

To check an existing subscription that you created in the past, it can be achieved by sending a GET request to our Subscription Consumers endpoint:

4. Fetching Batch order results

Following the execution of periodic orders, result files will be uploaded to an SFTP destination of your choosing determined during batch AR onboarding with Bloom.

The uploaded files contain details of each subscription jobs, here is the schema they will be following

Each subscription_job_id can be used to fetch a full report separately, should you need it.

Use the Get Full Report endpoint with this id to fetch the full report separately.

The content of the credit report held in Batch Order response is identical to the ones documented in regular report call, to learn more see Querying Reports.

Last updated

Was this helpful?