Banking & card issuance

Expense Management API

Integrates corporate account, balance and limit, holders, card issuance, purchases, cost centers, invoices and expense analyses by public API IOPAY.

The following is the list of the following:https://api.iopay.com.br/api/v1/baas
AuthenticationBearer token
ScopeBanking · corporate cards

From the corporate account to spending tracking.

API organises the corporate operation in separate resources, keeping accounts, carriers, cards, purchases, invoices and analyses within the same public contract.

Banking

Count, balance and limit.

Please check the account status, availability and request limit recharges.

The issuance of cards

Carriers and cards.

Create carriers, issue virtual or physical cards, and apply rules of use.

Management of the

Purchases, invoices and analytics.

Keep track of expenditure, cost centers, invoices and analytical clusters.

Status of the corporate account

Activation is not done by public API. The endpoint GET /corporate/cards/account remain available in any State to consult the current status of the appeal.

01inactive

Activation not yet requested.

02waiting_contract_assignment

Updated contract must be accepted in Account IOPAY.

03pending

Request under review by the IOPAY team.

04active

Available API operations.

Ativação. There's no public endpoint to request activation or accepting a contract. The clearance is made by the IOPAY Account. The status suspended indicates a resource not available for the account.

Basic flow

01 · AccountCheck the status.

Confirm that the appeal is active.

02 · CarrierCreate the holder.

Define identity, limit, range and cost center.

03 · CardGive me the card.

Choose type, limit and restriction of establishment where applicable.

04 · OperationKeep track of expenses.

Use shopping, billing, cost centers and analytics.

Creating a carrier

POST /corporate/cards/holders
{
  "name": "NOME HOLDER",
  "tax_id": "12345678909",
  "amount": 1000,
  "interval": "month",
  "center_cost": "MeuCenterCost"
}

Creating a card

POST /corporate/cards
{
  "holder_id": "{{holder_id}}",
  "name": "Google Ads",
  "limit": 100000,
  "interval": "month",
  "type": "virtual",
  "merchant": "GOOGLE"
}
Merchant restriction. merchant It specifies a restricted establishment, not the card name. Use it name as an internal identification. Forget about merchant or send null does not define a restriction for that field.

Resources and endpoints

AreaOperationsMain route
It countsStatus, balance, limit and charge./corporate/cards/account · /balance · /recharge
CardholdersList, consult, create, update and cancel./corporate/cards/holders
Card by carrierCheck out a cardholder's cards and shopping./holders/{holder_id}/cards · /purchases
CardsList, consult, create, update and consult sensitive data./corporate/cards · /{card_id}/secrets
PurchasesGeneral listing and by card/carrier./corporate/cards/purchases
Cost centersAggregate expenses and details of the center./corporate/cards/cost-centers
StatementsList, change maturity and generate payment./corporate/cards/invoices
The following is the list of the following:Summary and groupings of expenditure./corporate/cards/analytics

Limits, carriers and cost centres

Cardholder

Limit by rule.

The holder receives amount and interval day, week or month.

Card

Virtual or physical.

Associate the card with the carrier and set the merchant limit, interval and restriction when necessary.

Cost centre

Context of the operation.

Group expenses and consult purchases, amounts and cashback by cost centre.

Resources and pageing

Successful responses identify the appeal by resource. Listings use a standardised envelope with items, limit, total, offset, has_more and query_count.

Listing envelope
{
  "resource": "list",
  "sort": "time-descending",
  "items": [],
  "limit": 100,
  "total": 0,
  "offset": 0,
  "has_more": false,
  "query_count": 0
}
Paginação. limit and offset they're supported in the listings The default limit is 100 and the maximum is 1000 In Compatible Consultations ?refresh=true update the IOPAY database with the latest issuer bank data before the response.

Invoices and analysis of expenditure

Statements

Winning and paying.

List invoices, set the due date between 1 and 28 and manage payment data, which may include brcode and link.

The following is the list of the following:

Consolidated expenses.

See total expenditure, quantity of purchases, cashback and groupings by category, cost centre, carrier and monthly evolution.

Card data

The endpoint GET /corporate/cards/{card_id}/secrets return PAN, CVV, validity and TTL when necessary for the operation.

I'm on time. Avoid storing or recording the response from that endpoint. The collection itself advises that such data should only be consulted when necessary.

Public collection

The collection brings together the 23 documented endpoints, success and error examples for relevant account, recharge, carrier and operation flows.