Skip to main content

Simulate an order callback

POST /v2/fulfillment_sandbox/orders/{order_id}/callbacks

Simulate an event callback for some order statuses that are not covered by the batch statuses.

The following table describes the valid values for the event_status attribute.

StatusDescription
canceledSimulates a canceled order.
rescheduledSimulates a rescheduled order.
late_deliverySimulates a late delivery.

Security

NameInDescription
AuthorizationheaderThe Authorization header with the bearer token acquired during authentication.

Parameters

NameInTypeRequiredDescription
order_idpathstringRequiredThe ID of the order.

Request

FieldTypeRequiredDescription
event_namestringRequiredThe event name.

Request examples

curl --request POST \
--url 'https://connect.instacart.com/v2/fulfillment_sandbox/orders/{order_id}/callbacks' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"event_name": "string"
}'

Response

FieldTypeRequiredDescription
successbooleanRequiredWhether the request was successful.

Response examples

200 Success

{
"success": true
}

4XX Errors

Error responses return either a single error or multiple errors.

HTTP CodeCauseError MessageError CodeError Meta
404Order not found"Resource not found"4000Not applicable