Peer Transfers
A peer transfer moves funds from the general purpose account (GPA) of an account holder (a user or business) to another account belonging to the same account holder. Both the sender and recipient accounts must be active.
Create peer transfer
Copy section link
Action: POST
Endpoint: /peertransfers
Use this endpoint to request a peer transfer (i.e., a movement of funds from the GPA of an account holder to another account belonging to the same account holder). Add the source details to the body of the request in JSON format.
When creating a peer transfer request, you must pass in both a token to identify the fee sender (either sender_user_token
or sender_business_token
) and a token to identify the fee recipient (either recipient_user_token
or recipient_business_token
).
The sender and recipient objects must already exist.
Note
This feature is disabled by default and requires activation by Marqeta.This feature enables you to transfer or reallocate funds where the
sender_*_token
and the recipient_*_token
belong to the same account holder.
It does not allow you to transfer or reallocate funds between different account holders.
Contact your Marqeta representative for more information.
Request body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Send a Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Send a Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Send a Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Send a Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated. Allowable Values: 1–36 chars |
Response body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the peer transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. Allowable Values: 1–36 chars |
List peer transfers by account holder
Copy section link
Action: GET
Endpoint: /peertransfers/user/{user_or_business_token}
Use this endpoint to list peer transfers sent or received by a particular account holder. Include a user or business token as a path parameter to identify the account holder whose transfers you want to list.
This endpoint supports field filtering and pagination.
URL path parameters
Copy section link
Fields | Description |
---|---|
user_or_business_token
string
|
Existing user or business token. Send a Allowable Values: Existing user or business resource token |
URL query parameters
Copy section link
Fields | Description |
---|---|
count
integer
|
Number of peer transfer resources to retrieve. Allowable Values: 1-50 Default value: |
start_index
integer
|
Sort order index of the first resource in the returned array. Allowable Values: Any integer Default value: |
fields
string
|
Comma-delimited list of fields to return ( Allowable Values: Comma-delimited list of fields, or blank |
Response body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the peer transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. Allowable Values: 1–36 chars |
List received peer transfers
Copy section link
Action: GET
Endpoint: /peertransfers/user/{user_or_business_token}/recipient
Use this endpoint to list peer transfers sent by an account holder. Include a user or business token as a path parameter to identify the recipient.
This endpoint supports field filtering and pagination.
URL path parameters
Copy section link
Fields | Description |
---|---|
user_or_business_token
string
|
Existing user or business token. Send a Allowable Values: Existing user or business resource token |
URL query parameters
Copy section link
Fields | Description |
---|---|
count
integer
|
Number of peer transfer resources to retrieve. Allowable Values: 1-50 Default value: |
start_index
integer
|
Sort order index of the first resource in the returned array. Allowable Values: Any integer Default value: |
fields
string
|
Comma-delimited list of fields to return ( Allowable Values: Comma-delimited list of fields, or blank |
Response body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the peer transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. Allowable Values: 1–36 chars |
List sent peer transfers
Copy section link
Action: GET
Endpoint: /peertransfers/user/{user_or_business_token}/sender
Use this endpoint to list peer transfers sent by an account holder. Include a user or business token as a path parameter to identify the sender.
This endpoint supports field filtering and pagination.
URL path parameters
Copy section link
Fields | Description |
---|---|
user_or_business_token
string
|
Existing user or business token. Send a Allowable Values: Existing user or business resource token |
URL query parameters
Copy section link
Fields | Description |
---|---|
count
integer
|
Number of peer transfer resources to retrieve. Allowable Values: 1-50 Default value: |
start_index
integer
|
Sort order index of the first resource in the returned array. Allowable Values: Any integer Default value: |
fields
string
|
Comma-delimited list of fields to return ( Allowable Values: Comma-delimited list of fields, or blank |
Response body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the peer transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. Allowable Values: 1–36 chars |
Retrieve peer transfer
Copy section link
Action: GET
Endpoint: /peertransfers/{token}
Use this endpoint to retrieve a peer transfer request.
Include the peer transfer token
as a path parameter in the URL to identify the peer transfer to return.
URL path parameters
Copy section link
Fields | Description |
---|---|
token
string
|
Unique identifier of the peer transfer. Allowable Values: Existing peer transfer token |
Response body
Copy section link
Fields | Description |
---|---|
amount
decimal
|
Amount of the transfer. Allowable Values: Format: 0.00 |
currency_code
string
|
Three-digit ISO 4217 currency code. Allowable Values: Valid three-digit ISO 4217 currency code |
memo
string
|
Additional descriptive text about the peer transfer. Allowable Values: 1–99 chars |
recipient_business_token
string
|
Specifies the business account holder that receives funds. Allowable Values: 1–36 chars |
recipient_user_token
string
|
Specifies the user account holder that receives funds. Allowable Values: 1–36 chars |
sender_business_token
string
|
Specifies the business account holder that sends funds. Allowable Values: 1–36 chars |
sender_user_token
string
|
Specifies the user account holder that sends funds. Allowable Values: 1–36 chars |
tags
string
|
Metadata about the peer transfer. Allowable Values: 1–255 chars |
token
string
|
Unique identifier of the peer transfer request. Allowable Values: 1–36 chars |