Single Voucher Order

GET https://api.e-guma.ch/v1/esurprise/voucher_orders/{order-id}.json?apikey={api-key}

Parameters

api-key
required
order-id
required

Return

idThe ID of the order.
order_numberThe order number
can_be_cancelledBoolean that indicates if the order can be cancelled or not
can_not_be_cancelled_reasonIf the order cannot be cancelled, this string contains the reason why. Otherwise it is empty

Example

GET https://api.e-guma.ch/v1/esurprise/voucher_orders/82fbd13c-3fc6-4961-835d-64802cfd365c.json?apikey=510e32c594d84816a4af9df1
{
  "id": "7dc8a268-7d05-4a47-bacd-4d23d03a85c4",
  "order_number": "G100420",
  "can_be_cancelled": false,
  "can_not_be_cancelled_reason": "One voucher can't be deleted."
}