cURL
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": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "number": "<string>", "status": "PENDING", "createdAt": 4503599627370495, "orderNumber": "<string>", "object": "order", "value": 0, "tax": 0, "fee": 0, "totalItems": 0, "country": null, "currency": null, "currencyDecimals": null, "userId": null, "user": null, "lastPaymentId": null, "lastPaymentNumber": null, "lastPayment": null, "subscriptionId": null, "subscription": null } } }
Cancel a specific order by changing its status to CANCELLED. Requires write access.
PATCH /v0/orders/:orderIdOrNumber/cancel Parameter
PATCH /v0/orders/:orderIdOrNumber/cancel Request body
The body is of type object.
object
PATCH /v0/orders/:orderIdOrNumber/cancel Positive response
"success"
Show child attributes