Form creation
info
OK
const response = await fetch('//api.client.nbcgate.tech/api/pay/pay-form', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "balance_id": 0, "callback_url": "text", "external_id": "text", "name": "text", "return_url": "text" }), }); const data = await response.json();
{ "id": 0 }
Editing a form
No Content
const response = await fetch('//api.client.nbcgate.tech/api/pay/pay-form', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "balance_id": 0, "callback_url": "text", "id": 0, "name": "text", "pay_form_status_id": 0, "pay_form_type_id": 0, "return_url": "text" }), }); const data = await response.json();
{ "errors": [ { "code": 0, "field": "text", "message": "text" } ], "message": "text", "statusCode": 0 }
List of forms
const response = await fetch('//api.client.nbcgate.tech/api/pay/pay-form/{their}', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "amount": 0, "balance_id": 0, "callback_url": "text", "date_add": "text", "editable_balance": false, "id": 0, "iso_str": "text", "name": "text", "owner_id": 0, "pay_form_status_id": 0, "pay_form_type_id": 0, "return_url": "text" } ]