Finance API
Version: 2.1
The Finance API is used to fetch finance-related information that is processed through Zettle. The information includes account balance, all the transactions processed through Zettle, and payout.
API base URL
Environment | URL |
---|---|
Production | https://finance.izettle.com/v2 |
Zettle Oauth: Oauth2
For more information, see the OAuth API documentation.
Authorization Code OAuth Flow | |
---|---|
Authorizations URL: | https://oauth.zettle.com/authorize |
Token URL: | https://oauth.zettle.com/token |
Scopes: |
|
Accounts
Returns the balance in a merchant's preliminary or liquid account at a specific time.
Request
SECURITY | |
---|---|
ZettleOauth | READ:FINANCE |
PATH PARAMETERS | |
---|---|
accountTypeGroup required | string The type of a merchant's Zettle account. You can use one of the following account types:
|
QUERY PARAMETERS | |
---|---|
at | string<YYYY-MM-DDThh:mm:ss.sTZD> Default: NOW() Used to fetch account balance at a certain point in time. The time is specified in ISO 8601 date time format with timezone. If this parameter is used, any transaction after that point will be ignored. If not, the balance of all transactions at the current point in time is returned. Make sure that you encode the characters that are not permitted in a URL. For example, "2022-03-01T12:42:10.452+02:00" must be URL encoded because "+" is not a valid query parameter character. |
Responses
400
Returns when a required parameter is missing or in a wrong format in the request
401
Returns when one of the following occurs:
- The authentication information is missing in the request.
- The authentication token has expired.
- The authentication token is invalid.
403
Returns when the scope being used in the request is incorrect.
Request code samples
Response code samples
Returns all transactions or transactions of certain types from a merchant's preliminary or liquid account during a specific period.
Request
SECURITY | |
---|---|
ZettleOauth | READ:FINANCE |
PATH PARAMETERS | |
---|---|
accountTypeGroup required | string The type of a merchant's Zettle account. You can use one of the following account types:
|
QUERY PARAMETERS | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
start required | string<YYYY-MM-DDThh:mm:ss.sTZD> The start time in ISO 8601 date time format with timezone (inclusive) from when the transactions will be fetched. Make sure that you encode the characters that are not permitted in a URL. For example, "2022-03-01T12:42:10.452+02:00" must be URL encoded because "+" is not a valid query parameter character. | |||||||||||||||||||||||||||||||||||||||||||||
end required | string<YYYY-MM-DDThh:mm:ss.sTZD> The end time in ISO 8601 date time format with timezone (exclusive) before when the transactions will be fetched. Make sure that you encode the characters that are not permitted in a URL. For example, "2022-03-01T12:42:10.452+02:00" must be URL encoded because "+" is not a valid query parameter character. | |||||||||||||||||||||||||||||||||||||||||||||
includeTransactionType | array Specifies the transaction types to fetch. Multiple transaction types can be specified. Available transaction types are:
Note: Deprecated transaction types are no longer in use, but may appear in historic data. | |||||||||||||||||||||||||||||||||||||||||||||
limit | integer Default: 1000 The maximum number of transactions to return in a response. You must specify limit with any integer greater than 0. To avoid a big dataset in a response, use limit and offset together to set response pagination. The maximum limit allowed is 10000.
For example, to return only three transactions at a time from a collection of transactions for a specific period, set limit as 3 and offset as 0 in the first request. Then set limit as 3 and increment offset with 3 in the second request and repeat the request until all transactions are fetched. | |||||||||||||||||||||||||||||||||||||||||||||
offset | integer 0The number of transactions to skip before beginning to return in a response. You must specify offset with any integer greater than or equal to 0. Use limit and offset together to set pagination on the response to avoid returning a big dataset. |
Responses
400
Returns when a required parameter is missing or in a wrong format in the request.
401
Returns when one of the following occurs:
- The authentication information is missing in the request.
- The authentication token has expired.
- The authentication token is invalid.
403
Returns when the scope being used in the request is incorrect.
Request code samples
Response code samples
Payout
Returns payout related information from a merchant's liquid account. A payout is a deposit made to a merchant's bank account or a PayPal Wallet for PayPal users. If the merchant's configuration has a minimum account balance, then the payout will deposit the account balance minus the minimum account balance.
Request
SECURITY | |
---|---|
ZettleOauth | READ:FINANCE |
QUERY PARAMETERS | |
---|---|
at | string<YYYY-MM-DDThh:mm:ss.sTZD> Default: NOW() Used to fetch payouts at a certain point in time. The time is specified in ISO 8601 date time format with timezone. If this parameter is used, any transaction after that time will be ignored. If not, the account balance at the current point in time is returned. Make sure that you encode the characters that are not permitted in a URL. For example, "2022-03-01T12:42:10.452+02:00" must be URL encoded because "+" is not a valid query parameter character. |
Responses
400
Returns when a required parameter is missing or in a wrong format in the request.
401
Returns when one of the following occurs:
- The authentication information is missing in the request.
- The authentication token has expired.
- The authentication token is invalid.
403
Returns when the scope being used in the request is incorrect.