π§Cancel Order
Update Order
PUT
https://app.pgprints.io/api/v1/order/cancel
Update an order
Headers
Name
Type
Description
Content-Type*
string
application/json
X-PGPrints-Store-Id*
string
use the Store ID taken from the Manage Keys
Request Body
Name
Type
Description
orderId*
string
pgcOrderId or orderId
// example body
{
"orderId": "G-20035"
}
This is my code in some language:
//example nodejs with axios
const axios = require('axios');
let data = JSON.stringify({"body"});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://app.pgprints.io/api/v1/order/cancel',
headers: {
'Content-Type': 'application/json',
'X-PGPrints-Store-Id': '64c9d58aa6cead5392e73711',
'X-PGPrints-Hmac-Sha256': 'zz1/IH/V/Q+/00ImpP2CosYQb43qJn1nOwJd5/czDns='
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated