Confirm an order

This endpoint is used to confirm orders by sellers on Shopiro. It supports both GET and POST requests to handle order confirmation.

GET / POST https://shopiro.ca/api/v1/orders/confirm?oid={orderid}

Request Parameters

  • oid: The order ID to be confirmed. (Required)
Response Structure

Response Structure

The response will be a JSON object containing the result of the confirmation request.

  • success: Indicates the order was successfully confirmed.
  • failed: Describes the reason for failure, such as 'access_prohibited', 'unknown_orderid', 'orderid_wrong_format', 'order_cancelled', 'too_early', or 'failed_charge_order_now_cancelled'.

Example Usage

On this page