⬆️Webhook Update Status Order (New)

POST https://api.printway.io/cdn/api/webhook/v1/register-update-order

Headers

Name
Type
Description

PW-ACCESS-TOKEN*

String

The Access Token

Request Body

Name
Type
Description

type*

String

list: Get Webhook information registered

create: Register new webhook

update: Update webhook registered

endpoint*

String URL

Endpoint for us to send tracking when available (Required with type: create)

status*

Number

0: Inactive

1: Active

Default: 1

access_key

String

Your Access Key (Optional)

access_token

String

Your access token (Optional)

{
   "status": 200,
   "message": "Registered webhook successfully!",
   "endpoint": "https://api.printway.io/webhook/send-update-status-order",
   "access_key": "PW-UPDATE-STATUS",
   "access_token": "f1e7eb03bfe269adfdcafc37d30633f88ddab0fe",
   "status": "Active", // - Inactive
   "request_body": {
      "order_id": "--- Your Order ID ---",
      "order_items": [
         {
            "item_sku": "--- Item SKU ---",
            "order_status": "--- Order Status ---",
            "message_error": "--- Message Error ---"
         }
      ]
   },
   "request_header": {
      "Content-Type": "application/json",
      "--- Your Access key ---" : "----- Your access token registered -----"
   }
// This is my request body send via webhook

{
    "order_id": "abcdf121323",
    "order_items": [
        "item_sku": "PW17-MALORM-DEFAULTSIZE-PACK1-ONESIDE-NFFRSJSM-110",
        "order_status": "Not verify",
        "message_error": "Not verify address! Invalid City."
    ]
}

Last updated