# General documentation

<mark style="color:blue;">**Headers**</mark>

· **'Content-Type':** 'application/json' Send the data in JSON format

<mark style="color:blue;">**Body**</mark>

· **invno:** Integer number who will be the amount multiplied by 100 (for example, if the amount is 3€, this has to be 300, if the amount is 3,14€, this has to be 314)&#x20;

· **numberService:** terminal number who can be found in the CRM

· **currency:** coin who will be used to make the payment&#x20;

· **apiKey:** key to access the payment process order: product number url: url to get back

Once the request was success, the response will be in text format and this will be the identifier with which has to be use to go to \*\*<https://orders.waynance.app?order=orderidentifier**\\>
There will start the payment process

**Curl example**

```
curl --location 'https://waynance.app/makeorder' \
--header 'Content-Type: application/json' \
--data '{
"invno": 313,
"numberService": 110,
"currency": "EUR",
"apiKey": "apicodekey123",
"order": 35,
"url": "http://miempresa.com/"
}'
```

**Fetch example (Javascript)**

```
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
 "invno": 313,
 "numberService": 110,
 "currency": "EUR",
 "apiKey": "apicodekey123",
 "order": 35,
 "url": "http://miempresa.com/"
});
var requestOptions = {
 method: 'POST',
 headers: myHeaders,
 body: raw,
 redirect: 'follow'
};
fetch("https://waynance.app/makeorder", requestOptions)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));
```

**Php curl example**

```
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
 CURLOPT_URL => 'https://waynance.app/makeorder',
 CURLOPT_RETURNTRANSFER => true,
 CURLOPT_ENCODING => '',
 CURLOPT_MAXREDIRS => 10,
 CURLOPT_TIMEOUT => 0,
 CURLOPT_FOLLOWLOCATION => true,
 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
 CURLOPT_CUSTOMREQUEST => 'POST',
 CURLOPT_POSTFIELDS =>'{
"invno": 313,
"numberService": 110,
"currency": "EUR",
"apiKey": "apicodekey123",
"order": 35,
"url": "http://miempresa.com/"
}',
 CURLOPT_HTTPHEADER => array(
 'Content-Type: application/json'
 ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://waynance-api.gitbook.io/api-waynance/general-documentation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
