DEVELOPER REFERENCE
Custom REST API reference
Base URL: https://your-store.com/wp-json/wooapp/v1.
Every custom route and method registered by the WooApp plugin is
listed below. Download the
OpenAPI 3.1 contract for schemas and
response examples. Values below are illustrative; store settings,
IDs, countries, amounts and provider actions vary.
Send JSON with Content-Type: application/json. Customer
routes require Authorization: Bearer ACCESS_TOKEN,
obtained from login or registration. Access tokens expire in 900
seconds; refresh tokens rotate. Keep the latest replacement refresh
token. Merchant/administrator identities cannot sign in as app
customers. HTTPS is required except explicitly local WordPress
environments. Errors use WordPress REST format, for example
{"code":"wooapp_authentication_required","message":"Customer
authentication is required.","data":{"status":401}}. Respect HTTP 429 rate limits and do not retry checkout with a new
idempotency key.
Cart and checkout use Cart-Token. Get a guest
cart/token from GET /cart; retain the token returned in
both the response header and data. A customer cart must match the
authenticated customer. POST /cart/merge takes the
guest token plus the new customer bearer session and returns the
customer token. Checkout options and attempts require the same cart
token and, for a customer cart, the same bearer identity. Reuse the
same Idempotency-Key for retries of the same checkout
body. A changed body needs a new key after resolving any active
attempt. Attempts expire after 30 minutes. Only POST create/resume
returns a provider next action; GET status does not restart payment.
Prices in WooCommerce Store API carts are integer minor-unit
strings; expected_total uses that exact format. Order,
variation and attempt totals use decimal strings with an explicit
amount_format. Never calculate payable amounts in the
client. Paginated custom endpoints accept page (default
1, 1–100000) and per_page (default 20, 1–100);
responses include pagination. GET also supports
WordPress's standard HEAD behavior. OPTIONS provides REST route
discovery.
| Method |
Endpoint |
Authentication |
Accepted parameters (* required body field) |
GET |
/bootstrap
|
Public |
No body or query parameters. |
GET |
/home
|
Public |
locale (query, optional): string: en, ar |
POST |
/auth/login
|
Public |
JSON body: object; fields: login* (string; maxLength=254),
password* (string; maxLength=4096), device (string;
maxLength=100)
|
POST |
/auth/register
|
Public |
JSON body: object; fields: email* (string; format=email),
password* (string; minLength=12; maxLength=4096), first_name
(string; maxLength=100), last_name (string; maxLength=100),
device (string; maxLength=100)
|
POST |
/auth/refresh
|
Public |
JSON body: object; fields: refresh_token* (string;
maxLength=100)
|
POST |
/auth/logout
|
Customer bearer session |
No body or query parameters. |
POST |
/auth/logout-all
|
Customer bearer session |
No body or query parameters. |
POST |
/auth/password/forgot
|
Public |
JSON body: object; fields: email* (string; format=email)
|
POST |
/auth/password/reset
|
Public |
JSON body: object; fields: login* (string; maxLength=254),
key* (string; maxLength=254), password* (string;
minLength=12; maxLength=4096)
|
GET |
/me
|
Customer bearer session |
No body or query parameters. |
PATCH |
/me
|
Customer bearer session |
JSON body: object; fields: first_name (string;
maxLength=100), last_name (string; maxLength=100),
display_name (string; maxLength=100)
|
POST |
/me/password
|
Customer bearer session |
JSON body: object; fields: current_password* (string;
maxLength=4096), password* (string; minLength=12;
maxLength=4096)
|
GET |
/me/addresses
|
Customer bearer session |
No body or query parameters. |
PUT |
/me/addresses/{type}
|
Customer bearer session |
type (path, required): string: billing,
shipping JSON body: object; fields: first_name (string;
maxLength=200), last_name (string; maxLength=200), company
(string; maxLength=200), address_1 (string; maxLength=200),
address_2 (string; maxLength=200), city (string;
maxLength=200), state (string; maxLength=200), postcode
(string; maxLength=200), country (string; maxLength=200),
email (string; maxLength=200), phone (string; maxLength=200)
|
GET |
/address-schema
|
Public |
country (query, required): string;
pattern=^[A-Z]{2}$
type (query, optional):
string: billing, shipping; default=billing
|
POST |
/me/email
|
Customer bearer session |
JSON body: object; fields: email* (string; format=email),
current_password* (string; maxLength=4096)
|
POST |
/me/email/verify
|
Customer bearer session |
JSON body: object; fields: token* (string; maxLength=100)
|
GET |
/me/orders
|
Customer bearer session |
page (query, optional): integer; minimum=1;
maximum=100000; default=1
per_page (query,
optional): integer; minimum=1; maximum=100; default=20
|
GET |
/me/downloads
|
Customer bearer session |
No body or query parameters. |
GET |
/me/wishlist
|
Customer bearer session |
page (query, optional): integer; minimum=1;
maximum=100000; default=1
per_page (query,
optional): integer; minimum=1; maximum=100; default=20
|
GET |
/me/orders/{id}
|
Customer bearer session |
id (path, required): integer; minimum=1 |
POST |
/me/deletion-request
|
Customer bearer session |
JSON body: object; fields: current_password* (string;
maxLength=4096)
|
GET |
/products/{id}/variations
|
Public |
id (path, required): integer; minimum=1
page
(query, optional): integer; minimum=1; maximum=100000;
default=1
per_page (query, optional):
integer; minimum=1; maximum=100; default=20
|
POST |
/products/{id}/reviews
|
Customer bearer session |
id (path, required): integer; minimum=1 JSON
body: object; fields: review* (string; maxLength=5000),
rating* (integer; minimum=1; maximum=5)
|
GET |
/cart
|
Public; optional Cart-Token (customer token needs bearer)
|
Cart-Token (header, optional): string |
POST |
/cart/merge
|
Customer bearer + guest Cart-Token |
Cart-Token (header, required): string |
GET |
/checkout/options
|
Cart-Token; customer bearer for customer carts |
Cart-Token (header, required): string |
POST |
/checkout/attempts
|
Cart-Token; customer bearer for customer carts |
Idempotency-Key (header, required): string;
pattern=^[A-Za-z0-9_-]{16,128}$
Cart-Token
(header, required): string JSON body: object; fields:
payment_method* (string: cod, stripe, paypal),
billing_address* (object; fields: first_name (string;
maxLength=200), last_name (string; maxLength=200), company
(string; maxLength=200), address_1 (string; maxLength=200),
address_2 (string; maxLength=200), city (string;
maxLength=200), state (string; maxLength=200), postcode
(string; maxLength=200), country (string; maxLength=200),
email (string; maxLength=200), phone (string;
maxLength=200)), shipping_address (object; fields:
first_name (string; maxLength=200), last_name (string;
maxLength=200), company (string; maxLength=200), address_1
(string; maxLength=200), address_2 (string; maxLength=200),
city (string; maxLength=200), state (string; maxLength=200),
postcode (string; maxLength=200), country (string;
maxLength=200), email (string; maxLength=200), phone
(string; maxLength=200)), customer_note (string;
maxLength=2000), additional_fields (object), expected_total*
(string; pattern=^[0-9]{1,12}$), terms_accepted* (boolean)
|
GET |
/checkout/attempts/{id}
|
Cart-Token; customer bearer for customer carts |
id (path, required): string; format=uuid
Cart-Token
(header, required): string
|
POST |
/checkout/attempts/{id}/confirm
|
Cart-Token; customer bearer for customer carts |
id (path, required): string; format=uuid
Cart-Token
(header, required): string
|
POST |
/checkout/attempts/{id}/cancel
|
Cart-Token; customer bearer for customer carts |
id (path, required): string; format=uuid
Cart-Token
(header, required): string
|
POST |
/webhooks/stripe
|
Provider signature verification |
Stripe-Signature (header, required): string JSON
body: object
|
POST |
/webhooks/paypal
|
Provider signature verification |
PAYPAL-AUTH-ALGO (header, required): string
PAYPAL-CERT-URL
(header, required): string
PAYPAL-TRANSMISSION-ID
(header, required): string
PAYPAL-TRANSMISSION-SIG
(header, required): string
PAYPAL-TRANSMISSION-TIME
(header, required): string JSON body: object
|
PUT |
/me/wishlist/{product_id}
|
Customer bearer session |
product_id (path, required): integer; minimum=1
|
DELETE |
/me/wishlist/{product_id}
|
Customer bearer session |
product_id (path, required): integer; minimum=1
|
GET /bootstrap
Read bootstrap
No body or query parameters.
Example response · HTTP 200
{
"data": {
"api_version": "1",
"plugin_version": "2.0.1",
"branding": {
"logo_id": 0,
"logo_height": 44,
"logo_width": 180,
"font": "editorial",
"palette": "citrus",
"tagline": "YOUR NEXT GOOD FIND",
"logo": {},
"colors": {
"name": "Olive & citrus",
"ink": "#232923",
"paper": "#FAF9F5",
"muted": "#73786F",
"line": "#E7E7DF",
"accent": "#DDEE9B",
"clay": "#A8583C"
}
},
"store": {
"name": "Your Store",
"url": "https://your-store.com/",
"rest_url": "https://your-store.com/wp-json/",
"currency": "USD",
"currency_minor_unit": 2,
"locale": "en_US",
"direction": "ltr",
"timezone": "UTC"
},
"features": {
"wishlist": true,
"orders": true,
"customer_auth": "opaque_bearer",
"native_auth": true,
"push": false,
"guest_checkout": true,
"registration": true
},
"checkout": {
"mode": "native",
"countries": {
"US": "United States (US)"
},
"default_country": "US",
"ready": true,
"supported_gateways": [
"cod",
"stripe",
"paypal"
],
"configured_online_gateways": [],
"options_url": "https://your-store.com/wp-json/wooapp/v1/checkout/options",
"gateway_targets": [
"cod",
"stripe",
"paypal"
],
"website_fallback": false
}
}
}
GET /home
Ordered visible product collections with grid/carousel/list
layouts, followed by WooApp banners. Empty or disabled collections
are omitted; latest products are returned when no visible
collection has products. Flutter places the hero and category
strip above the collections.
locale (query, optional): string: en, ar
Example response · HTTP 200
{
"data": {
"sections": [
{
"id": "featured",
"type": "product_rail",
"title": "Featured collection",
"subtitle": "Our favorites",
"layout": "carousel",
"product_ids": [
10,
11
]
}
]
}
}
POST /auth/login
Sign in a customer
JSON body: object; fields: login* (string; maxLength=254),
password* (string; maxLength=4096), device (string; maxLength=100)
Example response · HTTP 200
{
"data": {
"session": {
"token_type": "Bearer",
"access_token": "EXAMPLE_ACCESS_TOKEN",
"expires_in": 900,
"refresh_token": "EXAMPLE_REFRESH_TOKEN",
"refresh_expires_at": "2026-11-21T12:00:00+00:00",
"session_id": "11111111-2222-4333-8444-555555555555"
},
"customer": {
"id": 42,
"email": "customer@example.com",
"first_name": "Alex",
"last_name": "Morgan",
"display_name": "Alex Morgan",
"avatar_url": "https://your-store.com/avatar.png"
}
}
}
POST /auth/register
Register when enabled by the merchant
JSON body: object; fields: email* (string; format=email),
password* (string; minLength=12; maxLength=4096), first_name
(string; maxLength=100), last_name (string; maxLength=100), device
(string; maxLength=100)
Example response · HTTP 201
{
"data": {
"session": {
"token_type": "Bearer",
"access_token": "EXAMPLE_ACCESS_TOKEN",
"expires_in": 900,
"refresh_token": "EXAMPLE_REFRESH_TOKEN",
"refresh_expires_at": "2026-11-21T12:00:00+00:00",
"session_id": "11111111-2222-4333-8444-555555555555"
},
"customer": {
"id": 42,
"email": "customer@example.com",
"first_name": "Alex",
"last_name": "Morgan",
"display_name": "Alex Morgan",
"avatar_url": "https://your-store.com/avatar.png"
}
}
}
POST /auth/refresh
Rotate the session; replay revokes its family
JSON body: object; fields: refresh_token* (string; maxLength=100)
Example response · HTTP 200
{
"data": {
"session": {
"token_type": "Bearer",
"access_token": "EXAMPLE_ACCESS_TOKEN",
"expires_in": 900,
"refresh_token": "EXAMPLE_REFRESH_TOKEN",
"refresh_expires_at": "2026-11-21T12:00:00+00:00",
"session_id": "11111111-2222-4333-8444-555555555555"
}
}
}
POST /auth/logout
Revoke this mobile session
No body or query parameters.
Example response · HTTP 200
{
"data": {
"signed_out": true
}
}
POST /auth/logout-all
Revoke all mobile sessions
No body or query parameters.
Example response · HTTP 200
{
"data": {
"signed_out": true
}
}
POST /auth/password/forgot
Send the WordPress password reset email without exposing account
existence
JSON body: object; fields: email* (string; format=email)
Example response · HTTP 202
{
"data": {
"message": "If the account exists, password reset instructions will be emailed."
}
}
POST /auth/password/reset
Consume a WordPress reset key and revoke mobile sessions
JSON body: object; fields: login* (string; maxLength=254), key*
(string; maxLength=254), password* (string; minLength=12;
maxLength=4096)
Example response · HTTP 200
{
"data": {
"password_reset": true,
"sign_in_required": true
}
}
GET /me
Read the signed-in customer
No body or query parameters.
Example response · HTTP 200
{
"data": {
"id": 42,
"email": "customer@example.com",
"first_name": "Alex",
"last_name": "Morgan",
"display_name": "Alex Morgan",
"avatar_url": "https://your-store.com/avatar.png"
}
}
PATCH /me
Update safe profile fields
JSON body: object; fields: first_name (string; maxLength=100),
last_name (string; maxLength=100), display_name (string;
maxLength=100)
Example response · HTTP 200
{
"data": {
"id": 42,
"email": "customer@example.com",
"first_name": "Alex",
"last_name": "Morgan",
"display_name": "Alex Morgan",
"avatar_url": "https://your-store.com/avatar.png"
}
}
POST /me/password
Change password and require sign-in again
JSON body: object; fields: current_password* (string;
maxLength=4096), password* (string; minLength=12; maxLength=4096)
Example response · HTTP 200
{
"data": {
"password_changed": true,
"sign_in_required": true
}
}
GET /me/addresses
Read saved addresses
No body or query parameters.
Example response · HTTP 200
{
"data": {
"billing": {
"first_name": "Alex",
"last_name": "Morgan",
"company": "",
"address_1": "123 Example Street",
"address_2": "",
"city": "Los Angeles",
"state": "CA",
"postcode": "90001",
"country": "US",
"email": "customer@example.com",
"phone": "2025550100"
},
"shipping": {
"first_name": "Alex",
"last_name": "Morgan",
"company": "",
"address_1": "123 Example Street",
"address_2": "",
"city": "Los Angeles",
"state": "CA",
"postcode": "90001",
"country": "US",
"phone": "2025550100"
}
}
}
PUT /me/addresses/{type}
Unknown identity/role fields are ignored. Saved account addresses
and active Store API cart addresses are separate; update the cart
before checkout.
type (path, required): string: billing, shipping
JSON
body: object; fields: first_name (string; maxLength=200),
last_name (string; maxLength=200), company (string;
maxLength=200), address_1 (string; maxLength=200), address_2
(string; maxLength=200), city (string; maxLength=200), state
(string; maxLength=200), postcode (string; maxLength=200), country
(string; maxLength=200), email (string; maxLength=200), phone
(string; maxLength=200)
Example response · HTTP 200
{
"data": {
"first_name": "Alex",
"last_name": "Morgan",
"company": "",
"address_1": "123 Example Street",
"address_2": "",
"city": "Los Angeles",
"state": "CA",
"postcode": "90001",
"country": "US",
"email": "customer@example.com",
"phone": "2025550100"
}
}
GET /address-schema
Read WooCommerce address fields and country states
country (query, required): string;
pattern=^[A-Z]{2}$
type (query, optional):
string: billing, shipping; default=billing
Example response · HTTP 200
{
"data": {
"countries": {
"US": "United States (US)"
},
"states": {
"CA": "California"
},
"fields": {
"billing_first_name": {
"label": "First name",
"required": true,
"type": "text"
},
"billing_country": {
"label": "Country / Region",
"required": true,
"type": "country"
}
}
}
}
POST /me/email
Email a purpose-bound confirmation code to a new address
JSON body: object; fields: email* (string; format=email),
current_password* (string; maxLength=4096)
Example response · HTTP 200
{
"data": {
"verification_required": true
}
}
POST /me/email/verify
Confirm the new email and revoke sessions
JSON body: object; fields: token* (string; maxLength=100)
Example response · HTTP 200
{
"data": {
"email_changed": true,
"sign_in_required": true
}
}
GET /me/orders
Read owned orders
page (query, optional): integer; minimum=1;
maximum=100000; default=1
per_page (query,
optional): integer; minimum=1; maximum=100; default=20
Example response · HTTP 200
{
"data": [
{
"id": 123,
"number": "123",
"status": "processing",
"status_label": "Processing",
"created_at": "2026-10-22T12:00:00+00:00",
"currency": "USD",
"amount_format": "decimal",
"total": "35.00",
"total_tax": "0",
"shipping_total": "5.00",
"discount_total": "0",
"payment_method": "cod",
"payment_method_title": "Cash on delivery",
"paid_at": null,
"items": [
{
"id": 1,
"product_id": 10,
"variation_id": 0,
"name": "Linen shirt",
"quantity": 1,
"subtotal": "30.00",
"total": "30.00",
"total_tax": "0"
}
]
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 1,
"total_pages": 1
}
}
GET /me/downloads
Read owned downloads
No body or query parameters.
Example response · HTTP 200
{
"data": [
{
"download_id": "example-file-id",
"product_id": 10,
"product_name": "Guide",
"download_name": "Guide PDF",
"download_url": "https://your-store.com/?download_file=10&key=EXAMPLE",
"downloads_remaining": "2",
"access_expires": "2026-12-01",
"order_id": 123
}
]
}
GET /me/wishlist
Returns product_id entries; pagination is beside data.
page (query, optional): integer; minimum=1;
maximum=100000; default=1
per_page (query,
optional): integer; minimum=1; maximum=100; default=20
Example response · HTTP 200
{
"data": [
{
"product_id": 10
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 1,
"total_pages": 1
}
}
GET /me/orders/{id}
Read one owned order; other customers receive 404
id (path, required): integer; minimum=1
Example response · HTTP 200
{
"data": {
"id": 123,
"number": "123",
"status": "processing",
"status_label": "Processing",
"created_at": "2026-10-22T12:00:00+00:00",
"currency": "USD",
"amount_format": "decimal",
"total": "35.00",
"total_tax": "0",
"shipping_total": "5.00",
"discount_total": "0",
"payment_method": "cod",
"payment_method_title": "Cash on delivery",
"paid_at": null,
"items": [
{
"id": 1,
"product_id": 10,
"variation_id": 0,
"name": "Linen shirt",
"quantity": 1,
"subtotal": "30.00",
"total": "30.00",
"total_tax": "0"
}
]
}
}
POST /me/deletion-request
Requires the signed-in customer current password. Sends a
confirmation link to the existing account email. WordPress
validates the link before WooApp permanently deletes that login,
saved addresses, favorites and sessions. Unconfirmed requests do
not delete accounts. Required WooCommerce orders are preserved
with the customer ID detached; the merchant processes remaining
retained personal data through Tools > Erase Personal Data and
the published privacy procedure. A generic WordPress erasure
request alone does not authorize login deletion.
JSON body: object; fields: current_password* (string;
maxLength=4096)
Example response · HTTP 200
{
"data": {
"confirmation_required": true,
"account_deleted_after_confirmation": true,
"message": "Confirm the email to permanently delete your sign-in account. The store processes remaining personal data and required order retention separately."
}
}
GET /products/{id}/variations
Published visible variation rows plus parent attribute
descriptors. Use descriptors for exact keys, readable labels, all
wildcard choices and case-sensitive cart names. Global cart values
use term slugs; product-specific values use exact option names.
id (path, required): integer; minimum=1
page
(query, optional): integer; minimum=1; maximum=100000;
default=1
per_page (query, optional): integer;
minimum=1; maximum=100; default=20
Example response · HTTP 200
{
"data": [
{
"id": 11,
"attributes": {
"attribute_pa_size": "m"
},
"price": "30.00",
"regular_price": "35.00",
"sale_price": "30.00",
"currency": "USD",
"amount_format": "decimal",
"purchasable": true,
"in_stock": true,
"image_url": "https://your-store.com/uploads/shirt.jpg"
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total": 1,
"total_pages": 1
},
"attributes": [
{
"key": "attribute_pa_size",
"name": "Size",
"cart_name": "pa_size",
"taxonomy": "pa_size",
"terms": [
{
"slug": "m",
"name": "Medium"
}
]
}
]
}
POST /products/{id}/reviews
Submit a moderated review as the current customer
id (path, required): integer; minimum=1
JSON
body: object; fields: review* (string; maxLength=5000), rating*
(integer; minimum=1; maximum=5)
Example response · HTTP 201
{
"data": {
"id": 7,
"status": "pending"
}
}
GET /cart
On first use omit Cart-Token. Later use both customer bearer and
owned Cart-Token for customer carts. A guest cart must be
explicitly merged after sign-in.
Cart-Token (header, optional): string
Example response · HTTP 200
{
"data": {
"cart": {
"items": [],
"coupons": [],
"fees": [],
"totals": {
"total_items": "0",
"total_shipping": "0",
"total_price": "0",
"currency_code": "USD",
"currency_minor_unit": 2
},
"shipping_rates": []
},
"cart_token": "EXAMPLE_CART_TOKEN"
}
}
POST /cart/merge
Send the guest Cart-Token with the customer bearer. Successful
replay is idempotent; transfer validates standard simple/variable
items. Coupon codes are reapplied explicitly to the resulting
cart.
Cart-Token (header, required): string
Example response · HTTP 200
{
"data": {
"cart": {
"items": [],
"coupons": [],
"fees": [],
"totals": {
"total_items": "0",
"total_shipping": "0",
"total_price": "0",
"currency_code": "USD",
"currency_minor_unit": 2
},
"shipping_rates": []
},
"cart_token": "EXAMPLE_CUSTOMER_CART_TOKEN"
}
}
GET /checkout/options
Get cart-specific enabled methods and the current WooCommerce cart
Cart-Token (header, required): string
Example response · HTTP 200
{
"data": {
"payment_methods": [
{
"id": "cod",
"title": "Cash on delivery",
"requires_sdk": false
}
],
"cart": {
"items": [],
"coupons": [],
"fees": [],
"totals": {
"total_items": "0",
"total_shipping": "0",
"total_price": "0",
"currency_code": "USD",
"currency_minor_unit": 2
},
"shipping_rates": []
},
"terms_url": "https://your-store.com/terms/",
"privacy_url": "https://your-store.com/privacy/",
"terms_required": true,
"website_fallback": false
}
}
POST /checkout/attempts
Always retry the exact same body and key after uncertain
responses. expected_total is the Store API minor-unit total_price.
Response totals are decimal strings. Positive COD orders are
confirmed and unpaid. Online attempts expire after 30 minutes;
cancel before starting a different payment.
Idempotency-Key (header, required): string;
pattern=^[A-Za-z0-9_-]{16,128}$
Cart-Token
(header, required): string
JSON body: object; fields:
payment_method* (string: cod, stripe, paypal), billing_address*
(object; fields: first_name (string; maxLength=200), last_name
(string; maxLength=200), company (string; maxLength=200),
address_1 (string; maxLength=200), address_2 (string;
maxLength=200), city (string; maxLength=200), state (string;
maxLength=200), postcode (string; maxLength=200), country (string;
maxLength=200), email (string; maxLength=200), phone (string;
maxLength=200)), shipping_address (object; fields: first_name
(string; maxLength=200), last_name (string; maxLength=200),
company (string; maxLength=200), address_1 (string;
maxLength=200), address_2 (string; maxLength=200), city (string;
maxLength=200), state (string; maxLength=200), postcode (string;
maxLength=200), country (string; maxLength=200), email (string;
maxLength=200), phone (string; maxLength=200)), customer_note
(string; maxLength=2000), additional_fields (object),
expected_total* (string; pattern=^[0-9]{1,12}$), terms_accepted*
(boolean)
Example response · HTTP 200
{
"data": {
"id": "11111111-2222-4333-8444-555555555555",
"order_id": 123,
"order_number": "123",
"state": "confirmed",
"payment_method": "cod",
"currency": "USD",
"total": "35.00",
"amount_format": "decimal",
"paid": false,
"payment_collected": false,
"next_action": null
}
}
GET /checkout/attempts/{id}
Reads status only. Replay the original creation request to
retrieve an SDK next_action.
id (path, required): string; format=uuid
Cart-Token
(header, required): string
Example response · HTTP 200
{
"data": {
"id": "11111111-2222-4333-8444-555555555555",
"order_id": 123,
"order_number": "123",
"state": "confirmed",
"payment_method": "cod",
"currency": "USD",
"total": "35.00",
"amount_format": "decimal",
"paid": false,
"payment_collected": false,
"next_action": null
}
}
POST /checkout/attempts/{id}/confirm
No client payment status, provider ID, or order total is trusted.
id (path, required): string; format=uuid
Cart-Token
(header, required): string
Example response · HTTP 200
{
"data": {
"id": "11111111-2222-4333-8444-555555555555",
"order_id": 123,
"order_number": "123",
"state": "confirmed",
"payment_method": "cod",
"currency": "USD",
"total": "35.00",
"amount_format": "decimal",
"paid": false,
"payment_collected": false,
"next_action": null
}
}
POST /checkout/attempts/{id}/cancel
No client payment status, provider ID, or order total is trusted.
id (path, required): string; format=uuid
Cart-Token
(header, required): string
Example response · HTTP 200
{
"data": {
"id": "11111111-2222-4333-8444-555555555555",
"order_id": 123,
"order_number": "123",
"state": "cancelled",
"payment_method": "cod",
"currency": "USD",
"total": "35.00",
"amount_format": "decimal",
"paid": false,
"payment_collected": false,
"next_action": null
}
}
POST /webhooks/stripe
Receive a verified stripe webhook
Stripe-Signature (header, required): string
JSON
body: object
Example response · HTTP 200
{
"received": true
}
POST /webhooks/paypal
Receive a verified paypal webhook
PAYPAL-AUTH-ALGO (header, required): string
PAYPAL-CERT-URL
(header, required): string
PAYPAL-TRANSMISSION-ID
(header, required): string
PAYPAL-TRANSMISSION-SIG
(header, required): string
PAYPAL-TRANSMISSION-TIME
(header, required): string
JSON body: object
Example response · HTTP 200
{
"received": true
}
PUT /me/wishlist/{product_id}
Add a public product idempotently
product_id (path, required): integer; minimum=1
Example response · HTTP 200
{
"data": {
"product_id": 10,
"saved": true
}
}
DELETE /me/wishlist/{product_id}
Remove an owned membership idempotently
product_id (path, required): integer; minimum=1
Example response · HTTP 200
{
"data": {
"product_id": 10,
"saved": false
}
}
WooCommerce Store API
WooApp uses the native /wp-json/wc/store/v1 API for
products, categories, collection data, published reviews, cart
items, coupons, customer address updates and shipping-rate
selection. These are WooCommerce routes, not custom WooApp routes.
Follow the
official Store API reference. Pass the cart token on cart mutations. The WooApp product
extension adds extensions.wooapp.label.text. Customer
bearer sessions are scoped to WooApp v1 and Store API only, not the
administrative WooCommerce REST API.
Merchant editor requests
The visual editors use authenticated WordPress AJAX, not additional
custom REST endpoints. Requests go to
/wp-admin/admin-ajax.php as form-encoded POST, with the
current WordPress login cookie, a matching nonce and
manage_woocommerce capability. Never expose these
nonces or merchant credentials in Flutter. Success uses
{"success":true,"data":...}; failures use
{"success":false,"data":{"message":"..."}}. Save
requests require the revision returned by the current editor; stale
edits return HTTP 409.
| Action / operation |
Accepted form fields |
Success data |
| wooapp_home_search |
nonce (wooapp_home_builder), query string ≤100 characters,
page 1–100
|
{products:[{id,name,sku,image,price}],more:false} |
| wooapp_home_save |
nonce (wooapp_home_builder), revision string, sections JSON
list: ≤20 rows with id, title ≤100, subtitle ≤180, layout
grid/carousel/list, enabled boolean, product_ids list ≤100
positive integers
|
{sections:[],products:{},revision:"hash",locale:"en",storeName:"Store"}
|
| wooapp_studio / search |
nonce (wooapp_studio), operation=search, kind=product or
category, query ≤100, page 1–100
|
{products:[{id,name,image,price}],more:false} |
| wooapp_studio / save_branding |
nonce, operation=save_branding, revision, payload JSON with
logo_id, logo_height (24–88), logo_width (80–240), tagline
≤70, palette (preset key), font (preset key)
|
{settings:{logo:{},logo_height:40,logo_width:180,tagline:"",palette:"citrus",font:"editorial",colors:{}},revision:"hash"}
|
| wooapp_studio / save_banners |
nonce, operation=save_banners, revision, payload JSON
{items:[...],deleted_ids:[]}; ≤20 items with id (0=new),
title, enabled boolean, subtitle, badge, cta_label,
media_type image/video, image_id (poster required),
video_id, link_type none/product/category/search, target_id,
query
|
{items:[],revision:"hash"}; order follows submitted items;
deleted IDs move to Trash
|