List the accounts an order can be paid from
const url = 'https://api.1up.gift/funding-accounts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.1up.gift/funding-accounts \ --header 'Authorization: Bearer <token>'Returns the accounts the service account this key belongs to is assigned to, plus any open to all. Accounts of every currency are returned and labelled with theirs; the send endpoints reject an account whose currency does not match the order’s.
An empty list means funding is switched off for your account and orders are invoiced instead, in
which case you can omit accountId when sending.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The accounts you can draw from.
An account an order can be paid from. Its currency must match the order currency at send time.
object
The account id. Pass it as accountId when sending.
The account name.
True for the customer’s master float (as opposed to a group account).
The id of the currency this account holds.
The ISO code of the currency this account holds.
The funds currently available, in the account currency.
A ready-made display label (“Marketing (GBP): £400.00”) for dropdowns that show a single field.
An account an order can be paid from. Its currency must match the order currency at send time.
object
The account id. Pass it as accountId when sending.
The account name.
True for the customer’s master float (as opposed to a group account).
The id of the currency this account holds.
The ISO code of the currency this account holds.
The funds currently available, in the account currency.
A ready-made display label (“Marketing (GBP): £400.00”) for dropdowns that show a single field.
Examplegenerated
[ { "id": 1, "name": "example", "isMaster": true, "currencyId": 1, "currency": "example", "balance": 1, "label": "example" }]An account an order can be paid from. Its currency must match the order currency at send time.
object
The account id. Pass it as accountId when sending.
The account name.
True for the customer’s master float (as opposed to a group account).
The id of the currency this account holds.
The ISO code of the currency this account holds.
The funds currently available, in the account currency.
A ready-made display label (“Marketing (GBP): £400.00”) for dropdowns that show a single field.
Examplegenerated
[ { "id": 1, "name": "example", "isMaster": true, "currencyId": 1, "currency": "example", "balance": 1, "label": "example" }]The service account this key belongs to is no longer active.
object
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}