Skip to content

create a standing order (V1 – deprecated)

posthttps://api.tranzila.com/v1/sto/create

⚠️ Deprecated (V1). This V1 endpoint is no longer supported. Use the V2 endpoint of the same name instead. It remains documented for reference during migration only.

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/json
sto_idinteger
Example:4192
terminal_nameterminalNamerequired
sto_payments_numberintegerrequired
Example:12
charge_frequencystringrequired
Allowed values:weeklymonthlyquarterlyhalf-yearlyyearly
Example:monthly
first_charge_datedbDate
charge_domintegerrequired
Example:25
clientSTOClient
itemSTOItemrequired
cardtokenDetails
msvbankDetails
charge_amountnumber
Example:150
last_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 CodeDescription
20300Too many payment methods
20301Failed to insert STO
20302Failed to retrieve STO
20303No payment method
20304Bad date
20305Failed to create token

Response body

response.json
JSON
1{
2  "error_code": 0,
3  "message": "string",
4  "sto_id": 0
5}
6
Was this page helpful?