Get purchase status
/channels/blooio/purchases/{purchaseId}Poll the status of an asynchronous number purchase by its purchase_id. Returns pending, completed (every line has a number), or failed. A line awaiting Blooio staff (a custom request, or an out-of-stock area code or ZIP) has phone_number: null and the ticket_id of its provisioning ticket; the purchase stays pending until staff provision it. Requires the numbers:read scope for OAuth apps.
Path parameters
purchaseIdRequiredstringHeaders
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Returns
dataoptionalobject
dataoptionalobjectpurchase_idoptionalstringstatusoptionalstring"pending""completed""failed"allocationsoptionalobject[]
allocationsoptionalobject[]Array of object
binding_idoptionalstringphone_numberoptionalstring | nullNull until the line has a number.
typeoptionalstring | nullticket_idoptionalstring | nullThe line's provisioning ticket when staff provision it by hand (custom request, or out-of-stock area code or ZIP). Read it with GET /v4/tickets/{ticketId}.
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X GET https://api.blooio.com/v4/channels/blooio/purchases/obj_a1b2c3d4 \{ "data": { "purchase_id": "obj_a1b2c3d4", "status": "pending", "allocations": [ { "binding_id": "obj_a1b2c3d4", "phone_number": "+15551234567", "type": "string", "ticket_id": "obj_a1b2c3d4" } ] }}