PATCH
/
v0
/
orders
/
{orderIdOrNumber}
/
cancel
curl --request PATCH \
  --url https://api.fungies.io/v0/orders/{orderIdOrNumber}/cancel \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '{}'
{
  "status": "<string>",
  "data": {
    "order": {
      "object": "order",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "number": "<string>",
      "status": "PENDING",
      "value": 0,
      "tax": 0,
      "fee": 0,
      "totalItems": 0,
      "country": null,
      "currency": null,
      "currencyDecimals": null,
      "createdAt": 4503599627370495,
      "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user": null,
      "orderNumber": "<string>"
    }
  }
}

Authorizations

x-fngs-public-key
string
header
required
x-fngs-secret-key
string
header
required

Path Parameters

orderIdOrNumber
required

PATCH /v0/orders/:orderIdOrNumber/cancel Parameter

Body

application/json · object
PATCH /v0/orders/:orderIdOrNumber/cancel Request body

The body is of type object.

Response

200
application/json
PATCH /v0/orders/:orderIdOrNumber/cancel Positive response
status
string
required
Allowed value: "success"
data
object
required