Commerce
Post v1publiccheckout payment proof
POST
/
v1
/
public
/
checkout
/
{token}
/
payment-proof
cURL
curl --request POST \
--url https://api.wazapin.com/v1/public/checkout/{token}/payment-proof \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
options.body = form;
fetch('https://api.wazapin.com/v1/public/checkout/{token}/payment-proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/public/checkout/{token}/payment-proof"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
cURL
curl --request POST \
--url https://api.wazapin.com/v1/public/checkout/{token}/payment-proof \
--header 'Content-Type: multipart/form-data' \
--header 'X-Api-Key: <api-key>' \
--form file='@example-file'const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};
options.body = form;
fetch('https://api.wazapin.com/v1/public/checkout/{token}/payment-proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/public/checkout/{token}/payment-proof"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-Api-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text){
"url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}