1b.app
Link copied -

Unable to create payment, pardon The first element of the payment array is missing

Good day,
We cannot create in the payment process, we pass the following parameters:
URL = 'https://owwa.crm-onebox.com/api/v2/order/get/'
params={
"amount": 80.00
"orderid": 220392,
"accountid": 19,
"currencyid": 1,
"userid": 12941
}
We accept the following: The first element of the payments array is missing
I add the screenshot
Original question is available on version: ru

Answers:

1. url is incorrect in the ticket description
2. On the screen, everything is OK, except that params must be an array of objects and not just an object. Those.:
params=[{
not params={
13.07.2022, 20:10
Original comment available on version: ru

Андрій
CEO, owwa.com.ua
anonymous hamster It's a big problem, so it was really a problem in passing parameters, it helped:
params=[{
13.07.2022, 20:42
Original comment available on version: ru

please. The api has a try it out button on the right of each method (after it is deployed), when it is pressed, a test request will be generated, below you can see the generated json to better understand what structure it has.

This can sometimes help you to compare your request with what is specified in the api (I mean the json structure). There you can even send a request and see the result, you just need to insert your api key and box from above in the settings.
13.07.2022, 21:05
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment