Orders
Besday Orders API: create a UGC video order with a brief, pay it from credits, list and retrieve orders, approve deliveries and request revisions.
Updated · API version 2026-12-03
An order is one brief to one creator. Create it unpaid, pay it from credits, then follow it through the order lifecycle.
The order object#
One order for a video (or up to 10 of the same video for a real creator) from one creator. Created unpaid (draft), then paid from credits.
| Field | Description |
|---|---|
objectstring | Always order.order |
idstring | Unique id. |
statusstring | Where the order is. See the order lifecycle.draftawaiting_paymentawaiting_acceptanceawaiting_productactivedeliveredrevision_requesteddisputedcompletedcancelled |
creatorobject | { id, slug, name, kind } of the creator making it. |
duration_secondsinteger | Video length. |
aspect_ratiostring | Always 9:16 (vertical) for new orders. |
quantityinteger | Number of videos. |
add_onsobject[] | { kind, quantity, unit_price_credits } for each add-on ordered. |
price_creditsnumber | Total price in credits, computed by Besday (never sent by you). |
product_urlstring · nullable | The product page the video is about. |
briefobject · nullable | The structured brief (see Create an order). |
notestring · nullable | Free-text brief. |
requires_shippingboolean | True when you ship a physical product to the creator. |
delivery_daysinteger · nullable | Days the creator has once the clock starts. |
campaign_idstring · nullable | Set when the order came from a campaign. |
paid_atstring · nullable | ISO 8601 timestamp (UTC) |
accept_bystring · nullable | Real creators: deadline to accept. ISO 8601 timestamp (UTC) |
accepted_atstring · nullable | ISO 8601 timestamp (UTC) |
delivery_due_atstring · nullable | When the video is due. ISO 8601 timestamp (UTC) |
delivered_atstring · nullable | ISO 8601 timestamp (UTC) |
approved_atstring · nullable | ISO 8601 timestamp (UTC) |
cancelled_atstring · nullable | ISO 8601 timestamp (UTC) |
cancellation_reasonstring · nullable | Why it was cancelled. |
created_atstring | ISO 8601 timestamp (UTC) |
updated_atstring | ISO 8601 timestamp (UTC) |
dashboard_urlstring | The order on besday.com, for people. |
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "active",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": "2026-12-03T17:03:40.000Z",
"accept_by": "2026-12-05T17:03:40.000Z",
"accepted_at": "2026-12-03T19:12:00.000Z",
"delivery_due_at": "2026-12-07T15:00:00.000Z",
"delivered_at": null,
"approved_at": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-04T15:00:00.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2"
}Create an order#
POST/api/v1/ordersscope: read_writeIdempotency-Key
Creates an unpaid order (status draft) with your brief. Besday computes the price from the creator’s prices; pay it with POST /v1/orders/{id}/pay.
Body parameters (JSON)
| Parameter | Description |
|---|---|
creatorstring · required | The creator’s id or slug. |
duration_secondsinteger · required | Video length. One of 15, 30, 45, 60, 90, 120, 180 (the creator’s prices list what they sell); AI creators also take 195–600 in 15-second steps. |
aspect_ratiostring | Vertical video. Default 9:16.9:16 |
quantityinteger | Videos of the same brief, 1–10 (real creators). Default 1. |
add_onsobject[] | Real creators: [{ "kind": "captions", "quantity": 1 }]. Kinds: raw_footage, extra_hooks, captions, rush. extra_hooks takes quantity 1–5; rush halves the delivery time. |
product_urlstring | The product page (http or https). |
briefobject | Structured brief, every field optional: goal (awareness, sales, app_installs, other), goal_other, platforms (tiktok, instagram_reels, youtube_shorts, paid_ads, other), audience, key_messages[], hooks[], must_say, must_avoid, call_to_action, script, reference_links[] (https), anything_else. |
notestring | Free-text brief (up to 1,000 characters), instead of brief. |
requires_shippingboolean | Real creators: you will ship a physical product. The creator’s clock starts when it arrives. |
Request
curl -X POST "https://besday.com/api/v1/orders" \
-H "Authorization: Bearer $BESDAY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"creator": "maya-w",
"duration_seconds": 30,
"add_ons": [
{
"kind": "captions",
"quantity": 1
}
],
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"requires_shipping": true,
"brief": {
"goal": "sales",
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it"
}
}'const res = await fetch("https://besday.com/api/v1/orders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"creator": "maya-w",
"duration_seconds": 30,
"add_ons": [
{
"kind": "captions",
"quantity": 1
}
],
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"requires_shipping": true,
"brief": {
"goal": "sales",
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it"
}
}),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.post(
"https://besday.com/api/v1/orders",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"creator": "maya-w",
"duration_seconds": 30,
"add_ons": [
{
"kind": "captions",
"quantity": 1
}
],
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"requires_shipping": True,
"brief": {
"goal": "sales",
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it"
}
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 201
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "draft",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": null,
"accept_by": null,
"accepted_at": null,
"delivery_due_at": null,
"delivered_at": null,
"approved_at": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-03T17:02:11.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2"
}Errors
422 parameter_invalid: A parameter is missing or invalid;paramnames it.409 creator_unavailable: The creator is not taking new orders right now.403 insufficient_scope: Areadkey tried to change something. Create aread_writekey.409 idempotency_key_reused: This Idempotency-Key was already used with a different request.
Accepted fields: creator, duration_seconds, aspect_ratio, quantity, add_ons, product_url, brief, note, requires_shipping. Any other field is refused (422), so a typo never goes unnoticed.
Pay for an order#
POST/api/v1/orders/{id}/payscope: read_writeIdempotency-Key
Pays the order from your credits. A real creator then has 48 hours to accept; an AI creator starts at once.
Path parameters
| Parameter | Description |
|---|---|
idstring · required | The order id. |
Request
curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay" \
-H "Authorization: Bearer $BESDAY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.post(
"https://besday.com/api/v1/orders/prj_01HZX8Q4V2/pay",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 200
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "awaiting_acceptance",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": "2026-12-03T17:03:40.000Z",
"accept_by": "2026-12-05T17:03:40.000Z",
"accepted_at": null,
"delivery_due_at": null,
"delivered_at": null,
"approved_at": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-04T15:00:00.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2",
"payment": {
"spent_credits": 168,
"balance_after_credits": 332
}
}Errors
402 insufficient_credits: The order costs more credits than the brand has. The error carries the shortfall and a link to buy credits.409 already_paid: The order is already paid.403 email_unverified: The key’s team member has not verified their email address, which Besday requires before paying.403 member_limit: Paying would pass the monthly spending limit the brand owner set for this team member.423 credits_blocked: Spending is paused on this brand’s credits. Contact Besday support.409 creator_unavailable: The creator is not taking new orders right now.409 order_state: The order is not in a status that allows this action.404 not_found: No such object for your brand.
On 402 insufficient_credits the error also carries price_credits, balance_credits, shortfall_credits, suggested_top_up_credits and buy_credits_url.
List orders#
GET/api/v1/ordersscope: read
Your brand’s orders, newest first, paid and unpaid.
Query parameters
| Parameter | Description |
|---|---|
statusstring | Only orders in this status.draftawaiting_paymentawaiting_acceptanceawaiting_productactivedeliveredrevision_requesteddisputedcompletedcancelled |
limitinteger | Page size, 1–100. Default 20. |
cursorstring | The next_cursor of the previous page. |
Request
curl "https://besday.com/api/v1/orders?status=delivered" \
-H "Authorization: Bearer $BESDAY_API_KEY"const res = await fetch("https://besday.com/api/v1/orders?status=delivered", {
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.get(
"https://besday.com/api/v1/orders?status=delivered",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 200
{
"object": "list",
"data": [
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "active",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": "2026-12-03T17:03:40.000Z",
"accept_by": "2026-12-05T17:03:40.000Z",
"accepted_at": "2026-12-03T19:12:00.000Z",
"delivery_due_at": "2026-12-07T15:00:00.000Z",
"delivered_at": null,
"approved_at": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-04T15:00:00.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2"
}
],
"has_more": false,
"next_cursor": null
}Errors
422 parameter_invalid: A parameter is missing or invalid;paramnames it.
Retrieve an order#
GET/api/v1/orders/{id}scope: read
One order with its status, price, brief and timeline.
Path parameters
| Parameter | Description |
|---|---|
idstring · required | The order id. |
Request
curl "https://besday.com/api/v1/orders/prj_01HZX8Q4V2" \
-H "Authorization: Bearer $BESDAY_API_KEY"const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2", {
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.get(
"https://besday.com/api/v1/orders/prj_01HZX8Q4V2",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 200
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "active",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": "2026-12-03T17:03:40.000Z",
"accept_by": "2026-12-05T17:03:40.000Z",
"accepted_at": "2026-12-03T19:12:00.000Z",
"delivery_due_at": "2026-12-07T15:00:00.000Z",
"delivered_at": null,
"approved_at": null,
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-04T15:00:00.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2"
}Errors
404 not_found: No such object for your brand.
Delete an unpaid order#
DELETE/api/v1/orders/{id}scope: read_write
Deletes an order that was never paid. Paid orders cannot be deleted; message the creator or contact support to cancel one.
Path parameters
| Parameter | Description |
|---|---|
idstring · required | The order id. |
Request
curl -X DELETE "https://besday.com/api/v1/orders/prj_01HZX8Q4V2" \
-H "Authorization: Bearer $BESDAY_API_KEY"const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.delete(
"https://besday.com/api/v1/orders/prj_01HZX8Q4V2",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 200
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"deleted": true
}Errors
404 not_found: No such object for your brand.409 order_state: The order is not in a status that allows this action.
Approve a delivery#
POST/api/v1/orders/{id}/approvescope: read_writeIdempotency-Key
Approves the delivered video. The order completes, its licence is issued, and a real creator’s original files unlock. Safe to call twice.
Path parameters
| Parameter | Description |
|---|---|
idstring · required | The order id. |
Request
curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve" \
-H "Authorization: Bearer $BESDAY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
},
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.post(
"https://besday.com/api/v1/orders/prj_01HZX8Q4V2/approve",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 200
{
"object": "order",
"id": "prj_01HZX8Q4V2",
"status": "completed",
"creator": {
"id": "cr_7f3a9c21",
"slug": "maya-w",
"name": "Maya W.",
"kind": "real"
},
"duration_seconds": 30,
"aspect_ratio": "9:16",
"quantity": 1,
"add_ons": [
{
"kind": "captions",
"quantity": 1,
"unit_price_credits": 19
}
],
"price_credits": 168,
"product_url": "https://yourbrand.com/products/vitamin-c-serum",
"brief": {
"goal": "sales",
"goal_other": null,
"platforms": [
"tiktok",
"instagram_reels"
],
"audience": "Women 25–40 with sensitive skin",
"key_messages": [
"Fragrance-free",
"Visible glow in 2 weeks"
],
"hooks": [
"I stopped wearing foundation because of this"
],
"must_say": "Use code MAYA15",
"must_avoid": "Medical claims",
"call_to_action": "Tap the link to try it",
"script": null,
"reference_links": [],
"anything_else": null
},
"note": null,
"requires_shipping": true,
"delivery_days": 3,
"campaign_id": null,
"paid_at": "2026-12-03T17:03:40.000Z",
"accept_by": "2026-12-05T17:03:40.000Z",
"accepted_at": "2026-12-03T19:12:00.000Z",
"delivery_due_at": "2026-12-07T15:00:00.000Z",
"delivered_at": "2026-12-06T18:40:00.000Z",
"approved_at": "2026-12-07T09:15:00.000Z",
"cancelled_at": null,
"cancellation_reason": null,
"created_at": "2026-12-03T17:02:11.000Z",
"updated_at": "2026-12-04T15:00:00.000Z",
"dashboard_url": "https://besday.com/app/brands/projects/prj_01HZX8Q4V2"
}Errors
409 order_state: The order is not in a status that allows this action.404 not_found: No such object for your brand.
Request a revision#
POST/api/v1/orders/{id}/revisionsscope: read_writeIdempotency-Key
Asks the creator for changes to a delivered video. Two revision rounds are included; the new version is due 48 hours later.
Path parameters
| Parameter | Description |
|---|---|
idstring · required | The order id. |
Body parameters (JSON)
| Parameter | Description |
|---|---|
bodystring · required | What should change, in plain words. |
Request
curl -X POST "https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions" \
-H "Authorization: Bearer $BESDAY_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"body": "Please open with the product in hand and say the discount code twice."
}'const res = await fetch("https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BESDAY_API_KEY}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({
"body": "Please open with the product in hand and say the discount code twice."
}),
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);import os, uuid, requests
res = requests.post(
"https://besday.com/api/v1/orders/prj_01HZX8Q4V2/revisions",
headers={
"Authorization": f"Bearer {os.environ['BESDAY_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"body": "Please open with the product in hand and say the discount code twice."
},
timeout=30,
)
res.raise_for_status()
print(res.json())Response 201
{
"object": "revision_request",
"id": "rev_2a7c19",
"order_id": "prj_01HZX8Q4V2",
"revisions_remaining": 1
}Errors
422 parameter_invalid: A parameter is missing or invalid;paramnames it.409 order_state: The order is not in a status that allows this action.409 limit_reached: The brand already has the most objects of this kind allowed (for example 5 webhook endpoints).404 not_found: No such object for your brand.