🏷️ Use this endpoint to set a custom tag on one of your orders. Tags are a free-text label you control — use them to group or annotate orders however is useful to you (e.g. "campaign-q3","client-acme").
PATCH /api/v1/orders/:uuid/taguuid (required)ID (e.g. "rec_XXXXXXXXXXXXXXXX"), as returned by GET /orders or GET /orders/:uuid.organization_id (required)tag (required)"" to clear an existing tag.{ "tag": "campaign-q3" }PATCH /api/v1/orders/rec_XXXXXXXXXXXXXXXX/tag?organization_id=recXXXXXXXXXXXXXX{
"tag": "campaign-q3"
}{
"message": "Updated Successfully"
}{ "message": "tag is required" }{ "message": "tag exceeds maximum length of 320 characters" }uuid, or it doesn't belong to organization_id){ "message": "Payment record not found" }curl --location --request PATCH 'https://server.scaledmail.com/api/v1/orders//tag?organization_id=undefined' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data ''{}