Skip to main content
PATCH
Update Sample Request
Reports what happened to a sample request after you fulfill it: mark it shipped or delivered and save your order details. Each status change sends the matching webhook event.
Requires a full-access API key (read-only keys are rejected).

Path parameters

Body parameters

Allowed status changes: Send only order_id, order_name or tracking_url to update them without changing the status.

Request example

Response

Returns the updated sample request in data. See List sample requests for the fields.

Error responses

403: read-only API key
404: not found for your organization
422: invalid status or transition

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Sample request id

Body

application/json
status
enum<string>

approved and rejected need a pending request; shipped needs an approved one; delivered needs an approved or shipped one

Available options:
approved,
rejected,
shipped,
delivered
order_id
string

Your order id

order_name
string

Your order number

tracking_url
string

Tracking link for the creator

Response

Sample request updated

data
object