create a standing order
posthttps://api.tranzila.com/v1/sto/create
Deprecated
Migrate to V2
Request
Headers
X-tranzila-api-request-timestringrequired
Request time sent in Unix format (large integer counting seconds from Jan 1 st , 1970 00:00:00
X-tranzila-api-app-keystringrequired
Application public key supplied by Tranzila
X-tranzila-api-noncestringrequired
A 40 bytes NONCE – unique random string generated with any random bytes function
X-tranzila-api-access-tokenstringrequired
hash_hmac using ‘sha256’ on application key with secret + request-time + nonce. hash_hmac is available for all programming languages with samples found here: https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in- different-languages/
Body
application/jsonsto_idinteger
Example:
4192terminal_nameterminalNamerequired
sto_payments_numberintegerrequired
Example:
12charge_frequencystringrequired
Allowed values:
weeklymonthlyquarterlyhalf-yearlyyearlyExample:
monthlyfirst_charge_datedbDate
charge_domintegerrequired
Example:
25clientSTOClient
itemSTOItemrequired
cardtokenDetails
msvbankDetails
charge_amountnumber
Example:
150last_charge_date_timeunknown
next_charge_date_timeunknown
response_languageAPILanguage
created_by_userstring
Example:
הכבשה שושנהResponses
The response can be 200 with an Application error code:
| Error Code | Description |
|---|---|
| 20300 | Too many payment methods |
| 20301 | Failed to insert STO |
| 20302 | Failed to retrieve STO |
| 20303 | No payment method |
| 20304 | Bad date |
| 20305 | Failed to create token |
Response body
response.json
JSON
1{
2 "error_code": 0,
3 "message": "string",
4 "sto_id": 0
5}
6