update a standing order
posthttps://api.tranzila.com/v1/sto/update
Deprecated
Migrate to V2
This is a paid modal
Please contact sales to use this modal.
Request
Headers
X-tranzila-api-request-timestringrequired
Request time sent in Unix format (large integer counting milliseconds 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/jsonterminal_nameterminalNamerequired
sto_idintegerrequired
STO id being updated
Example:
4192sto_statusstring
New STO status
Allowed values:
activeinactiveExample:
inactiveresponse_languageAPILanguage
updated_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 |
| 20305 | Failed to create token |
Response body
response.json
JSON
1{
2 "error_code": 0,
3 "message": "string"
4}
5