6οΈβ£Account Creation
This step assumes you have successfully created a new customer record and verified it using Customer Creationand Customer Verification steps of the guide
Now that you have created and verified a first customer record, you are able to onboard the customer on OffBlocks accounts. To do so, you need to use /customers/{customerId}/account
POST
request.
Let's say we want to open a new card account (the only option for the time being) that's using Euro as a base currency (we don't support multi-currency accounts just yet):
If everything was successful, you will receive a response with status 201 (Created)
which looks similar to the following:
If everything went well, you will receive an account challenge to sign as a base64 encoded string. This is required to proceed to deployment stage. Signatures are not currently verified in our Sandbox environment, however they are still required to be submitted.
In order to submit a signed challenge, use a POST
request to /accounts/{accountId}/challenge/sign
endpoint.
Please, not that the signature also must be a base64 encoded string. If signature is verified, you will receive an empty response with status code 204 (No Content)
.
If, for any reason, the original challenge is lost or cannot be signed immediately, you can fetch it again using a dedicated endpoint. If we encounter an error during signature validation via /sign
endpoint, a new challenge will be issued for you to retrieve.
Once the challenge has been successfully signed, we will proceed to deployment stage. The account will be automatically deployed and activated, which you can verify by making a GET
request to /accounts/{accountId}
.
From there we can proceed to issuing cards for the account.
Last updated