Note
This feature is currently in limited-availability alpha and subject to change. To learn more about the alpha program for this feature, contact your Marqeta representative.
This feature is currently in limited-availability alpha and subject to change. To learn more about the alpha program for this feature, contact your Marqeta representative.
Get Payees for User
Action:GETEndpoint:
/users/{user_token}/payees
Get a list of the linked payees associated with the user.
URL path parameters
| Fields | Description |
|---|---|
| user_token string Required | Unique identifier of the user resource. Allowable Values: 36 char max |
URL query parameters
| Fields | Description |
|---|---|
| name string Optional | Name of the payee to get. Allowable Values: |
| page_size integer Optional | Number of results to display per page. Allowable Values: 1 min |
| page_number integer Optional | Current page number of the returned results. Allowable Values: 1 min |
Response body
| Fields | Description |
|---|---|
| data array of objects Conditionally returned | One or more payment objects. Allowable Values: |
| data[].biller object Conditionally returned | Biller linked to a payee or payment. Allowable Values: |
| data[].biller.biller_token string Conditionally returned | Unique identifier of the biller resource. Allowable Values: 2–36 chars |
| data[].biller.name string Conditionally returned | Name of the biller. Allowable Values: 2–124 chars |
| data[].biller.logo string Conditionally returned | Logo of the biller. Allowable Values: 255 char max |
| data[].biller.logo_type string Conditionally returned | Specifies the type of string for the value returned in the logo field. Allowable Values: URL, BINARY |
| data[].biller.address object Conditionally returned | The address of the biller. Allowable Values: |
| data[].biller.address.address1 string Conditionally returned | Street address of the biller. Allowable Values: 36 char max |
| data[].biller.address.address2 string Conditionally returned | Additional address information. Allowable Values: 36 char max |
| data[].biller.address.city string Conditionally returned | City of the biller. Allowable Values: 36 char max |
| data[].biller.address.country string Conditionally returned | Country of the biller. Allowable Values: 40 char max |
| data[].biller.address.zip_code string Conditionally returned | United States ZIP code of the address. Allowable Values: 20 char max |
| data[].biller.address.state string Conditionally returned | State of the biller. Allowable Values: 36 char max |
| data[].biller.address.address_token string Conditionally returned | Unique identifier of the address resource. Allowable Values: 36 char max |
| data[].user_token string Conditionally returned | The user associated with the payee Allowable Values: 36 char max |
| data[].nickname string Conditionally returned | Nickname provided by user Allowable Values: 36 char max |
| data[].payee_token int64 Conditionally returned | The token of the linked payee Allowable Values: Existing payee token |
| data[].payee_name string Conditionally returned | Payee Name Allowable Values: 36 char max |
| data[].account_number string Conditionally returned | User’s payee account number. Allowable Values: 36 char max |
| data[].status string Conditionally returned | Status Allowable Values: ACTIVE, INACTIVE, DELETED |
| data[].payment_options object Conditionally returned | Contains list of payment options for associated Payee Allowable Values: |
| data[].payment_options.card_options array of objects Conditionally returned | The list of cards and if convenience fee is applicable Allowable Values: |
| data[].payment_options.card_options[].card_type string Conditionally returned | card_type Allowable Values: MASTERCARD_DEBIT, VISA_DEBIT |
| data[].payment_options.card_options[].has_convenience_fee boolean Conditionally returned | boolean value indicating if a convenience fee applies for the corresponding card type Allowable Values: |
| data[].created_time datetime Conditionally returned | The time when payee was created. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
| data[].last_modified_time datetime Conditionally returned | The time when payee was most recently modified. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
| count integer Conditionally returned | Number of payee resources retrieved. Allowable Values: 0 min |
| page_size integer Conditionally returned | Number of results to display per page. Allowable Values: 1 min |
| page_number integer Conditionally returned | The current page number being returned of the results. Allowable Values: 1 min |
| has_more boolean Conditionally returned | A value of true indicates that more unreturned resources exist.Allowable Values: |
Sample response body
JSON
Link Payee to User
Action:POSTEndpoint:
/users/{user_token}/payees
Link a new payee to a user.
URL path parameters
| Fields | Description |
|---|---|
| user_token string Required | User token Allowable Values: 36 char max |
Request body
The request object for linking a user and payee| Fields | Description |
|---|---|
| biller_address_token string Optional | Unique identifier of the biller’s address. Allowable Values: Existing address token |
| biller_token string Required | Unique identifier of the biller resource. Allowable Values: 36 char max |
| nickname string Optional | Descriptive name for the account. Allowable Values: 36 char max |
| account_number string Required | The account number to be linked. Allowable Values: Existing account number |
Sample request body
JSON
Response body
| Fields | Description |
|---|---|
| biller object Conditionally returned | Biller linked to a payee or payment. Allowable Values: |
| biller.biller_token string Conditionally returned | Unique identifier of the biller resource. Allowable Values: 2–36 chars |
| biller.name string Conditionally returned | Name of the biller. Allowable Values: 2–124 chars |
| biller.logo string Conditionally returned | Logo of the biller. Allowable Values: 255 char max |
| biller.logo_type string Conditionally returned | Specifies the type of string for the value returned in the logo field. Allowable Values: URL, BINARY |
| biller.address object Conditionally returned | The address of the biller. Allowable Values: |
| biller.address.address1 string Conditionally returned | Street address of the biller. Allowable Values: 36 char max |
| biller.address.address2 string Conditionally returned | Additional address information. Allowable Values: 36 char max |
| biller.address.city string Conditionally returned | City of the biller. Allowable Values: 36 char max |
| biller.address.country string Conditionally returned | Country of the biller. Allowable Values: 40 char max |
| biller.address.zip_code string Conditionally returned | United States ZIP code of the address. Allowable Values: 20 char max |
| biller.address.state string Conditionally returned | State of the biller. Allowable Values: 36 char max |
| biller.address.address_token string Conditionally returned | Unique identifier of the address resource. Allowable Values: 36 char max |
| user_token string Conditionally returned | The user associated with the payee Allowable Values: 36 char max |
| nickname string Conditionally returned | Nickname provided by user Allowable Values: 36 char max |
| payee_token int64 Conditionally returned | The token of the linked payee Allowable Values: Existing payee token |
| payee_name string Conditionally returned | Payee Name Allowable Values: 36 char max |
| account_number string Conditionally returned | User’s payee account number. Allowable Values: 36 char max |
| status string Conditionally returned | Status Allowable Values: ACTIVE, INACTIVE, DELETED |
| payment_options object Conditionally returned | Contains list of payment options for associated Payee Allowable Values: |
| payment_options.card_options array of objects Conditionally returned | The list of cards and if convenience fee is applicable Allowable Values: |
| payment_options.card_options[].card_type string Conditionally returned | card_type Allowable Values: MASTERCARD_DEBIT, VISA_DEBIT |
| payment_options.card_options[].has_convenience_fee boolean Conditionally returned | boolean value indicating if a convenience fee applies for the corresponding card type Allowable Values: |
| created_time datetime Conditionally returned | The time when payee was created. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
| last_modified_time datetime Conditionally returned | The time when payee was most recently modified. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON
Delete Payee for User
Action:DELETEEndpoint:
/users/{user_token}/payees/{payee_token}
Delete a payee that is associated with a user.
URL path parameters
| Fields | Description |
|---|---|
| user_token string Required | Unique identifier of the user resource. Allowable Values: 36 char max |
| payee_token string Required | The token of the linked payee. Allowable Values: |
URL query parameters
| Fields | Description |
|---|---|
| deletePendingPayments boolean Optional | Delete Pending Payments? Allowable Values: |
Response body
| Fields | Description |
|---|---|
| message string Conditionally returned | The message for delete payee action Allowable Values: |
Sample response body
JSON
Get Payee for User
Action:GETEndpoint:
/users/{user_token}/payees/{payee_token}
Get a linked payee associated with the user.
URL path parameters
| Fields | Description |
|---|---|
| user_token string Required | Unique identifier of the user resource. Allowable Values: 36 char max |
| payee_token string Required | The token of the linked payee. Allowable Values: |
Response body
| Fields | Description |
|---|---|
| biller object Conditionally returned | Biller linked to a payee or payment. Allowable Values: |
| biller.biller_token string Conditionally returned | Unique identifier of the biller resource. Allowable Values: 2–36 chars |
| biller.name string Conditionally returned | Name of the biller. Allowable Values: 2–124 chars |
| biller.logo string Conditionally returned | Logo of the biller. Allowable Values: 255 char max |
| biller.logo_type string Conditionally returned | Specifies the type of string for the value returned in the logo field. Allowable Values: URL, BINARY |
| biller.address object Conditionally returned | The address of the biller. Allowable Values: |
| biller.address.address1 string Conditionally returned | Street address of the biller. Allowable Values: 36 char max |
| biller.address.address2 string Conditionally returned | Additional address information. Allowable Values: 36 char max |
| biller.address.city string Conditionally returned | City of the biller. Allowable Values: 36 char max |
| biller.address.country string Conditionally returned | Country of the biller. Allowable Values: 40 char max |
| biller.address.zip_code string Conditionally returned | United States ZIP code of the address. Allowable Values: 20 char max |
| biller.address.state string Conditionally returned | State of the biller. Allowable Values: 36 char max |
| biller.address.address_token string Conditionally returned | Unique identifier of the address resource. Allowable Values: 36 char max |
| user_token string Conditionally returned | The user associated with the payee Allowable Values: 36 char max |
| nickname string Conditionally returned | Nickname provided by user Allowable Values: 36 char max |
| payee_token int64 Conditionally returned | The token of the linked payee Allowable Values: Existing payee token |
| payee_name string Conditionally returned | Payee Name Allowable Values: 36 char max |
| account_number string Conditionally returned | User’s payee account number. Allowable Values: 36 char max |
| status string Conditionally returned | Status Allowable Values: ACTIVE, INACTIVE, DELETED |
| payment_options object Conditionally returned | Contains list of payment options for associated Payee Allowable Values: |
| payment_options.card_options array of objects Conditionally returned | The list of cards and if convenience fee is applicable Allowable Values: |
| payment_options.card_options[].card_type string Conditionally returned | card_type Allowable Values: MASTERCARD_DEBIT, VISA_DEBIT |
| payment_options.card_options[].has_convenience_fee boolean Conditionally returned | boolean value indicating if a convenience fee applies for the corresponding card type Allowable Values: |
| created_time datetime Conditionally returned | The time when payee was created. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
| last_modified_time datetime Conditionally returned | The time when payee was most recently modified. Allowable Values: yyyy-MM-ddThh:mm:ssZ |
Sample response body
JSON