PGPrints API Documentation
  • 😎Welcome to PGPrints API
  • πŸ”Authentication
  • Reference
    • βš™οΈAPI Reference
      • πŸ‡ΈπŸ‡¨Create Order
      • πŸ‡ΈπŸ‡¨Create Order Label
      • 🧁Update Order
      • 🧁Update Order Label
      • 🧁Cancel Order
      • πŸ“–Search Order
      • πŸ“–Search Product Tiktok
      • πŸ“–Search Product Normal
Powered by GitBook
On this page
  • Update Order
  1. Reference
  2. API Reference

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

X-PGPrints-Hmac-Sha256*

string

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);
});
PreviousUpdate Order LabelNextSearch Order

Last updated 2 months ago

see the authentication:

βš™οΈ
🧁
https://pgprints.gitbook.io/api/authentication