Skip to main content

Resources

Store Location

Store Location is a JSON:API resource, top-level fields:

NameTypeDescription
typestringType of the Store Location resource. The value is always storeLocation.
attributesJSON ObjectJSON object representing the Store Location data.

Attributes

NameTypeDescription
storeIdstringIdentifier of the retail store that supports Cash Deposits. This field will be used as storeId when Creating a Cash Deposit Barcode.
retailerNamestringName of the retail store that supports Cash Deposits.
phonePhonePhone of the retail store.
addressAddressAddress of the retail store.
coordinatesCoordinatesCoordinates (latitude, longitude) of the retail store.
distancenumberDistance to the retail store (in miles).
Example Store Location resource:
{
"type": "storeLocation",
"attributes": {
"storeId": "4385",
"retailerName": "CVS",
"phone": "5163248587",
"address": {
"street": "38 Pantigo Rd",
"city": "East Hampton",
"state": "NY",
"postalCode": "11937",
"country": "US"
},
"coordinates": {
"longitude": -72.182441,
"latitude": 40.965453
},
"distance": 20.74174506966581
}
}

Cash Deposit Barcode

Cash Deposit Barcode is a JSON:API resource, top-level fields:

NameTypeDescription
typestringType of the Cash Deposit Barcode resource. The value is always cashDepositBarcode.
attributesJSON ObjectJSON object representing the Cash Deposit Barcode data.

Attributes

NameTypeDescription
barcodeNumberstringUnique identifier of the barcode. This field will be used in Get Barcode Image endpoint.
expirationISO 8601 Date and time stringThe expiration date and time of the barcode
storeIdstringIdentifier of the retail store that supports Cash Deposits.
retailerNamestringName of the retailer store that supports Cash Deposits.

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account designated to receive the payment.
customerJSON:API RelationshipThe Customer the deposit account belongs to.
Example Cash Deposit Barcode resource:
{
"data": {
"type": "cashDepositBarcode",
"attributes": {
"barcodeNumber": "123456789123456789000000000000",
"expiration": "2023-12-26T13:37:23.927Z",
"storeId": "2481",
"retailerName": "7-Eleven"
},
"relationships": {
"customer": {
"data": {
"type": "customer",
"id": "10001"
}
},
"account": {
"data": {
"type": "account",
"id": "10002"
}
}
}
}
}

Cash Deposit Transaction

CashDepositTransaction is a JSON:API resource, top-level fields:

NameTypeDescription
idstringIdentifier of the transaction resource.
typestringType of the transaction resource. The value is always cashDepositTransaction.
attributesJSON ObjectJSON object representing the transaction data.
relationshipsJSON:API RelationshipsDescribes relationships between the transaction resource and other resources.

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the transaction was created. Common to all transaction types.
directionstringThe direction in which the funds flow. Common to all transaction types.
amountintegerThe amount (cents) of the transaction. Common to all transaction types.
balanceintegerThe account balance (cents) after the transaction. Common to all transaction types.
summarystringSummary of the transaction. Common to all transaction types.
tagsobjectSee Tags. Inherited from the payment tags (see Tag Inheritance).

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account of the customer.
customerOptional, JSON:API RelationshipThe Customer the deposit account belongs to. This relationship is only available if the account belongs to a single customer, business or individual.
customersOptional, Array of JSON:API RelationshipThe list of Customers the deposit account belongs to. This relationship is only available if the account belongs to multiple individual customers.
Example CashDepositTransaction resource:
{
"type": "cashDepositTransaction",
"id": "1523",
"attributes": {
"createdAt": "2020-07-05T15:49:36.864Z",
"direction": "Credit",
"amount": 10000,
"balance": 12000,
"summary": "Cash deposit at Walgreens | Via card ending with 1234"
},
"relationships": {
"account": {
"data": {
"type": "depositAccount",
"id": "1000"
}
},
"customer": {
"data": {
"type": "customer",
"id": "3"
}
}
}
}