cURL
curl --request POST \ --url https://sandbox.hurdlr.com/rest/v5/banks/unitCustomerId \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: */*' \ --data ' { "unitCustomerId": "<string>", "defaultBusinessId": 123 } '
{ "result": "SUCCESS", "errors": { "fieldErrors": {}, "globalErrors": [ { "type": "DUPLICATE", "errorMessage": "<string>" } ] }, "id": "<string>", "webhook": { "userId": "<string>", "accountantUserId": "<string>", "type": "ENTITY_UPDATE" } }
Save a Unit customer for the API Partner’s user
The access token received from the authorization server in the OAuth 2.0 flow.
Unit customerId obtained from the Unit API
Id of the business to assign transactions to (useful if the bank accounts associated with this Unit customer are business accounts)
Successful operation
Object containing details about result of the action performed
The result of the action performed
SUCCESS
FAILURE
Error object containing details errors incurred, if any
Show child attributes
Id of the entity being acted upon