Skip to main content

Get Status with Flex

Allows a partner to get status information about one of their accounts in Flex.

note

This endpoint is hosted by Flex. If you are a multi biller partner, you must use the endpoint with both biller and account params, if you are a single biller partner, you should use the endpoint with just an account parameter.

Endpoint

GET /sbi/account/:accountId/status

Base URL: https://partner-bridge.{env}.getflex.com

Request

Headers

HeaderTypeRequiredDescription
X-Client-IdstringYesYour client ID (provided by Flex)
X-Api-KeystringYesYour API key (provided by Flex)
Content-TypestringYesMust be application/json

Request Params

ParamRequiredDescription
account_idyesThe account id in the partner’s system

Response

Success (200 OK)

{
"status": "active",
"last_payment_status": "completed",
"last_payment_date": "2026-01-15",
"last_payment_amount_in_cents": 10000
}

Response Fields

FieldTypeDescription
statusenum<active, canceled>The current status of this account in Flex
last_payment_statusenum<pending, processing, processed, sent, canceled>, nullableThe status of the last payment to the biller
last_payment_dateYYYY-MM-DD, nullableThe date the last payment was started.
last_payment_amount_in_centsInt, nullableThe amount of the last payment

last_payment_status The last_payment_status field gives the Partner insight into the current status of the last payment to the biller Flex has processed for this user. Below is an overview of what the statuses mean.

  • pending: Flex has seen the bill and will begin processing it soon.
  • in_progress: Flex is processing the payment to the Partner.
  • processed: The notification to the biller has been sent and marked as received. Funds are guaranteed.
  • complete: The funds have been sent to the partner.
  • canceled: The payment was canceled. Most commonly because the user didn’t take action in time.

Error Responses

404 Not Found

Returned when the client ID is not recognized or the account cannot be found.

{
"code": "NOT_FOUND",
"message": "Resource not found"
}

500 Internal Server Error

Returned when an unexpected error occurs on the Flex side.

{
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}