Marqeta

App · 25 actions

Issue and manage cards, cardholders and businesses in Marqeta, fund accounts, read transactions and balances, and follow transactions and status changes as they happen.

Actions

ActionWhat it does
Change card stateActivate, suspend or terminate a card.
Change cardholder statusActivate, suspend, close or terminate a cardholder.
Create businessCreate a business account holder.
Create cardIssue a card to a cardholder from a card product.
Create cardholderCreate a cardholder (user).
Create program funding sourceCreate a program funding source: the account of your program that funds cardholders' and businesses' accounts.
Fund accountMove money from a funding source into a cardholder's or business's general purpose account (GPA).
Get account balanceGet the balance of a cardholder's or business's general purpose account (GPA).
Get businessGet a business's details and status.
Get cardGet a card's state, last four digits and expiration.
Get card productGet a card product's details.
Get cardholderGet a cardholder's details and status.
Get funding orderGet a funding (GPA) order and whether it went through.
Get program funding sourceGet a program funding source and whether it is active.
Get transactionGet a transaction's amount, merchant, state and response.
List businessesList the program's businesses.
List card productsList the program's card products: the templates cards are issued from.
List card state changesList the history of a card's state, newest first.
List cardholder status changesList the history of a cardholder's status, newest first.
List cardholder's cardsList the cards a cardholder has.
List cardholdersList the program's cardholders (users).
List transactionsList transactions, newest first, for the whole program or one cardholder, business or card.
Search cardholdersFind cardholders by email, phone or the start of their name.
Update cardholderChange a cardholder's details.
Update program funding sourceRename a program funding source, or turn it off so it can no longer fund accounts.

Change card state

Activate, suspend or terminate a card. Terminating can't be undone.

Inputs

Cardcard_tokentextRequired
The card.
New statusstatetextRequired
The card's new state.One of: ACTIVE, SUSPENDED, TERMINATED (Terminated (permanent)), LIMITED.
Reasonreason_codetextRequired
Marqeta's standard reason for the change.One of: 00 (Activated for the first time (00)), 01 (Requested by you (01)), 02 (Inactive for a long time (02)), 03 (Mail can't be delivered to the address (03)), 04 (Negative account balance (04)), 05 (Account under review (05)), 06 (Suspicious activity (06)), 07 (Activity outside the program's rules (07)), 08 (Confirmed fraud (08)), 09 (Matched a sanctions (OFAC) list (09)), and 23 more.
Notereasontext
A note about the change, kept with it.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "card_token": "example",
    "channel": "example",
    "created_time": "example",
    "fulfillment_status": "example",
    "reason": "example",
    "reason_code": "example",
    "state": "example",
    "token": "example",
    "user_token": "example"
  }
}

Change cardholder status

Activate, suspend, close or terminate a cardholder. Terminating can't be undone.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).
New statusstatustextRequired
The cardholder's new status.One of: ACTIVE, SUSPENDED, CLOSED, TERMINATED (Terminated (permanent)), UNVERIFIED, LIMITED.
Reasonreason_codetextRequired
Marqeta's standard reason for the change.One of: 00 (Activated for the first time (00)), 01 (Requested by you (01)), 02 (Inactive for a long time (02)), 03 (Mail can't be delivered to the address (03)), 04 (Negative account balance (04)), 05 (Account under review (05)), 06 (Suspicious activity (06)), 07 (Activity outside the program's rules (07)), 08 (Confirmed fraud (08)), 09 (Matched a sanctions (OFAC) list (09)), and 23 more.
Notereasontext
A note about the change, kept with it.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "channel": "example",
    "created_time": "example",
    "reason": "example",
    "reason_code": "example",
    "status": "example",
    "token": "example",
    "user_token": "example"
  }
}

Create business

Create a business account holder.

Inputs

Legal namebusiness_name_legaltextRequired
The business's legal name.
Trading namebusiness_name_dbatext
The name it trades under (doing business as).
Phonephonetext
The phone number with its country code, such as +15105551212.
Websitewebsitetext
The business's website.
Descriptiongeneral_business_descriptiontext
What the business does.
Addressaddress1text
The office's street address.
Citycitytext
The office's city.
Statestatetext
The office's state or province.
Postal codepostal_codetext
The office's postal code.
Countrycountrytext
The office's country, such as USA.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "business_name_dba": "example",
    "business_name_legal": "example",
    "created_time": "example",
    "general_business_description": "example",
    "last_modified_time": "example",
    "office_location": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "country": "example",
      "postal_code": "example",
      "state": "example"
    },
    "phone": "example",
    "status": "example",
    "token": "example",
    "website": "example"
  }
}

Create card

Issue a card to a cardholder from a card product.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).
Card productcard_product_tokentextRequired
The card product.
Metadatametadataobject
Your own name and value pairs to keep with the card.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "card_product_token": "example",
    "created_time": "example",
    "expiration": "example",
    "fulfillment_status": "example",
    "instrument_type": "example",
    "last_four": "example",
    "last_modified_time": "example",
    "metadata": {},
    "state": "example",
    "state_reason": "example",
    "token": "example",
    "user_token": "example"
  }
}

Create cardholder

Create a cardholder (user). Their first status depends on your program's identity-check (KYC) rules.

Inputs

First namefirst_nametextRequired
The cardholder's legal first name.
Last namelast_nametextRequired
The cardholder's legal last name.
Emailemailtext
The cardholder's email. Each user's must be unique.
Phonephonetext
The phone number with its country code, such as +15105551212.
Addressaddress1text
The street address. Not a PO box.
Citycitytext
The city.
Statestatetext
The state or province, such as CA.
Postal codepostal_codetext
The postal code.
Countrycountrytext
The country, such as USA.
Date of birthbirth_datedate
The cardholder's date of birth.
Metadatametadataobject
Your own name and value pairs to keep with the cardholder.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "address1": "example",
    "birth_date": "example",
    "city": "example",
    "country": "example",
    "created_time": "example",
    "email": "example",
    "first_name": "example",
    "last_modified_time": "example",
    "last_name": "example",
    "metadata": {},
    "phone": "example",
    "postal_code": "example",
    "state": "example",
    "status": "example",
    "token": "example"
  }
}

Create program funding source

Create a program funding source: the account of your program that funds cardholders' and businesses' accounts.

Inputs

NamenametextRequired
A name for the funding source.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "account": "example",
    "active": true,
    "created_time": "example",
    "last_modified_time": "example",
    "name": "example",
    "token": "example"
  }
}

Fund account

Move money from a funding source into a cardholder's or business's general purpose account (GPA).

Inputs

Account ofaccount_typetextRequired
Whether the account belongs to a cardholder or a business.One of: user (Cardholder), business.
Cardholder or businessaccount_holder_tokentextRequired
The cardholder or business whose account to fund.
AmountamountnumberRequired
How much to add.At least 0.01.
Currencycurrency_codetextRequired
The account's currency.One of: USD, CAD, EUR, GBP, AUD, NZD, MXN, BRL, SGD, JPY.
Funding source tokenfunding_source_tokentextRequired
The funding source the money comes from, such as a program funding source.
Memomemotext
A note kept with the order.
Tagstagstext
Comma-separated tags for the order.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "amount": 1,
    "business_token": "example",
    "created_time": "example",
    "currency_code": "example",
    "funding_source_token": "example",
    "memo": "example",
    "response": {
      "code": "example",
      "memo": "example"
    },
    "state": "example",
    "tags": "example",
    "token": "example",
    "transaction_token": "example",
    "user_token": "example"
  }
}

Get account balance

Get the balance of a cardholder's or business's general purpose account (GPA).

Inputs

Cardholder or businessaccount_holder_tokentextRequired
The cardholder or business whose balance to read.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "gpa": {
      "available_balance": 1,
      "credit_balance": 1,
      "currency_code": "example",
      "ledger_balance": 1,
      "pending_credits": 1
    }
  }
}

Get business

Get a business's details and status.

Inputs

Businessbusiness_tokentextRequired
The business.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "business_name_dba": "example",
    "business_name_legal": "example",
    "created_time": "example",
    "general_business_description": "example",
    "last_modified_time": "example",
    "office_location": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "country": "example",
      "postal_code": "example",
      "state": "example"
    },
    "phone": "example",
    "status": "example",
    "token": "example",
    "website": "example"
  }
}

Get card

Get a card's state, last four digits and expiration. The full card number is never returned.

Inputs

Cardcard_tokentextRequired
The card.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "card_product_token": "example",
    "created_time": "example",
    "expiration": "example",
    "fulfillment_status": "example",
    "instrument_type": "example",
    "last_four": "example",
    "last_modified_time": "example",
    "metadata": {},
    "state": "example",
    "state_reason": "example",
    "token": "example",
    "user_token": "example"
  }
}

Get card product

Get a card product's details.

Inputs

Card productcard_product_tokentextRequired
The card product.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "created_time": "example",
    "end_date": "example",
    "last_modified_time": "example",
    "name": "example",
    "start_date": "example",
    "token": "example"
  }
}

Get cardholder

Get a cardholder's details and status.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "address1": "example",
    "birth_date": "example",
    "city": "example",
    "country": "example",
    "created_time": "example",
    "email": "example",
    "first_name": "example",
    "last_modified_time": "example",
    "last_name": "example",
    "metadata": {},
    "phone": "example",
    "postal_code": "example",
    "state": "example",
    "status": "example",
    "token": "example"
  }
}

Get funding order

Get a funding (GPA) order and whether it went through.

Inputs

Funding ordergpa_order_tokentextRequired
The funding order's token, from Fund account.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "amount": 1,
    "business_token": "example",
    "created_time": "example",
    "currency_code": "example",
    "funding_source_token": "example",
    "memo": "example",
    "response": {
      "code": "example",
      "memo": "example"
    },
    "state": "example",
    "tags": "example",
    "token": "example",
    "transaction_token": "example",
    "user_token": "example"
  }
}

Get program funding source

Get a program funding source and whether it is active.

Inputs

Funding source tokenfunding_source_tokentextRequired
The program funding source's token, from Create program funding source or your Marqeta dashboard.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "account": "example",
    "active": true,
    "created_time": "example",
    "last_modified_time": "example",
    "name": "example",
    "token": "example"
  }
}

Get transaction

Get a transaction's amount, merchant, state and response.

Inputs

Transactiontransaction_tokentextRequired
The transaction's token, from a list of transactions or a trigger.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "amount": 1,
    "business_token": "example",
    "card_acceptor": {
      "city": "example",
      "country_code": "example",
      "mcc": "example",
      "name": "example",
      "state": "example"
    },
    "card_token": "example",
    "created_time": "example",
    "currency_code": "example",
    "response": {
      "code": "example",
      "memo": "example"
    },
    "state": "example",
    "token": "example",
    "type": "example",
    "user_token": "example",
    "user_transaction_time": "example"
  }
}

List businesses

List the program's businesses.

Inputs

Legal namebusiness_name_legaltext
Only businesses with this legal name.
Trading namebusiness_name_dbatext
Only businesses with this trading (DBA) name.
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.
Ordersort_bytext
The order to list them in. Leave empty for the most recently changed first.One of: -createdTime (Newest first), createdTime (Oldest first), -lastModifiedTime (Most recently changed first).

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "active": true,
        "business_name_dba": "example",
        "business_name_legal": "example",
        "created_time": "example",
        "general_business_description": "example",
        "last_modified_time": "example",
        "office_location": {
          "address1": "example",
          "address2": "example",
          "city": "example",
          "country": "example",
          "postal_code": "example",
          "state": "example"
        },
        "phone": "example",
        "status": "example",
        "token": "example",
        "website": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List card products

List the program's card products: the templates cards are issued from.

Inputs

Records to returncountnumber
How many card products to return, up to 10.From 1 to 10.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "active": true,
        "created_time": "example",
        "end_date": "example",
        "last_modified_time": "example",
        "name": "example",
        "start_date": "example",
        "token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List card state changes

List the history of a card's state, newest first.

Inputs

Cardcard_tokentextRequired
The card.
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "card_token": "example",
        "channel": "example",
        "created_time": "example",
        "fulfillment_status": "example",
        "reason": "example",
        "reason_code": "example",
        "state": "example",
        "token": "example",
        "user_token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List cardholder status changes

List the history of a cardholder's status, newest first.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "channel": "example",
        "created_time": "example",
        "reason": "example",
        "reason_code": "example",
        "status": "example",
        "token": "example",
        "user_token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List cardholder's cards

List the cards a cardholder has.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "card_product_token": "example",
        "created_time": "example",
        "expiration": "example",
        "fulfillment_status": "example",
        "instrument_type": "example",
        "last_four": "example",
        "last_modified_time": "example",
        "metadata": {},
        "state": "example",
        "state_reason": "example",
        "token": "example",
        "user_token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List cardholders

List the program's cardholders (users).

Inputs

Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.
Ordersort_bytext
The order to list them in. Leave empty for the most recently changed first.One of: -createdTime (Newest first), createdTime (Oldest first), -lastModifiedTime (Most recently changed first).

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "active": true,
        "address1": "example",
        "birth_date": "example",
        "city": "example",
        "country": "example",
        "created_time": "example",
        "email": "example",
        "first_name": "example",
        "last_modified_time": "example",
        "last_name": "example",
        "metadata": {},
        "phone": "example",
        "postal_code": "example",
        "state": "example",
        "status": "example",
        "token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

List transactions

List transactions, newest first, for the whole program or one cardholder, business or card.

Inputs

Cardholderuser_tokentext
The cardholder (user).
Businessbusiness_tokentext
The business.
Cardcard_tokentext
The card.
Fromstart_datedate
Only transactions on or after this day.
Toend_datedate
Only transactions on or before this day.
Statesstatelist
Only transactions in these states. Leave empty for pending and completed ones.One or more of: PENDING, CLEARED, COMPLETION (Completed), DECLINED, ERROR.
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "amount": 1,
        "business_token": "example",
        "card_acceptor": {
          "city": "example",
          "country_code": "example",
          "mcc": "example",
          "name": "example",
          "state": "example"
        },
        "card_token": "example",
        "created_time": "example",
        "currency_code": "example",
        "response": {
          "code": "example",
          "memo": "example"
        },
        "state": "example",
        "token": "example",
        "type": "example",
        "user_token": "example",
        "user_transaction_time": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

Search cardholders

Find cardholders by email, phone or the start of their name.

Inputs

Emailemailtext
The exact email (not case-sensitive).
First namefirst_nametext
The start of the first name.
Last namelast_nametext
The start of the last name.
Phonephonetext
The phone number.
Records to returncountnumber
How many records to return. Leave empty for Marqeta's default.From 1 to 100.
Start at recordstart_indexnumber
How many records to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "count": 1,
    "data": [
      {
        "active": true,
        "address1": "example",
        "birth_date": "example",
        "city": "example",
        "country": "example",
        "created_time": "example",
        "email": "example",
        "first_name": "example",
        "last_modified_time": "example",
        "last_name": "example",
        "metadata": {},
        "phone": "example",
        "postal_code": "example",
        "state": "example",
        "status": "example",
        "token": "example"
      }
    ],
    "end_index": 1,
    "is_more": true,
    "start_index": 1
  }
}

Update cardholder

Change a cardholder's details. Fields left empty stay as they are.

Inputs

Cardholderuser_tokentextRequired
The cardholder (user).
First namefirst_nametext
The cardholder's legal first name.
Last namelast_nametext
The cardholder's legal last name.
Emailemailtext
The cardholder's email. Each user's must be unique.
Phonephonetext
The phone number with its country code, such as +15105551212.
Addressaddress1text
The street address. Not a PO box.
Citycitytext
The city.
Statestatetext
The state or province, such as CA.
Postal codepostal_codetext
The postal code.
Countrycountrytext
The country, such as USA.
Date of birthbirth_datedate
The cardholder's date of birth.
Metadatametadataobject
Your own name and value pairs to keep with the cardholder.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "active": true,
    "address1": "example",
    "birth_date": "example",
    "city": "example",
    "country": "example",
    "created_time": "example",
    "email": "example",
    "first_name": "example",
    "last_modified_time": "example",
    "last_name": "example",
    "metadata": {},
    "phone": "example",
    "postal_code": "example",
    "state": "example",
    "status": "example",
    "token": "example"
  }
}

Update program funding source

Rename a program funding source, or turn it off so it can no longer fund accounts.

Inputs

Funding source tokenfunding_source_tokentextRequired
The program funding source's token, from Create program funding source or your Marqeta dashboard.
Namenametext
The new name.
Activeactivetrue/false
On lets the funding source fund accounts; off stops it.

Outputs

dataobject
The response from Marqeta.
Example output
{
  "data": {
    "account": "example",
    "active": true,
    "created_time": "example",
    "last_modified_time": "example",
    "name": "example",
    "token": "example"
  }
}

On this page