Technical details
Overview
Zalando RESTful API and Event Guidelines are followed.
For exact details of each endpoint please see >> OpenAPI specs <<.
ðð Order flow
ð Order Creation
1. Data preparation
First you need tell client parameters of his exchange, for this purpose you need
ð GET /price
.
Also we recommend using our crypto address validator, if client supplies one
ð GET /btc-address-validation/{address}
.
2. Order create
After validating input data order creation endpoint is called.
According to your implementation call one of the public GET endpoints (if done in browser):
Or if done at backend, rather use one of private POST methods:
If above action is successful, client is notified by email about order creation.
Following cases are not required to have implemented - if you are providing only order creation and any other cases of flow go through our fallback website.
About most cases bellow is client informed via email and provided with corresponding URLs to solve their situation.
Each case solution consists of two or more API calls in set order. Generally GET confirms right condition and provides information. POST sends resolution of case.
ðŠĪ Verification
Client can be prompted to prove his identity in one or more steps. About each step is informed in separated email.
1.a Verify Identity
There is base information about person: name address, personal documents and phone number, etc...
-
ð GET /order/{id}/verify-identity
- indicates case validity (and supplies needed information) -
ð POST /order/{id}/verify-identity
- resolves case
1.b Anti Money Laundering
This step is required with bigger orders and takes place after Identity verification.
Please notice AML endpoints are separate for each country.
Czech Republic:
-
ð GET /order/{id}/aml-cz
- indicates case validity (and supplies needed information) -
ð POST /order/{id}/aml-cz
- resolves case
2. Verify Phone
Phone verification is more complex, since we need to send SMS code on demand.
SMS endpoints can be omitted if client refuses.
-
ð GET /order/{id}/verify-phone
- indicates case validity (and supplies needed information) -
ð GET /order/{id}/verify-phone-sms
- indicates if SMS code is already sent or not -
ð POST /order/{id}/verify-phone-sms
- request sending SMS code to client -
ð POST /order/{id}/verify-phone
- resolves case
ð Deposit
When client wants use his deposited funds, this case takes place. Please notice workflow is very similar to Verify Phone.
-
ð GET /order/{id}/deposit
- indicates case validity (and supplies needed information) -
ð GET /order/{id}/deposit-sms
- indicates if SMS code is already sent or not -
ð POST /order/{id}/deposit-sms
- request sending SMS code to client -
ð POST /order/{id}/deposit
- resolves case
âïļ Change
In case input funds or exchange rate expires client is prompted to decide if they accept changed conditions.
-
ð GET /order/{id}/change
- indicates case validity (and supplies needed information) -
ð POST /order/{id}/change
- resolves case
ðŠ Return
In case we decide about cancellation of SELL order, we need information to whee to return crypto funds.
-
ð GET /order/{id}/return
- indicates case validity (and supplies needed information) -
ð POST /order/{id}/return
- resolves case