orders
Update order
orders
Update order
Modify an existing order’s details. Requires write access.
PATCH
/
v0
/
orders
/
{orderIdOrNumber}
/
update
curl --request PATCH \
--url https://api.fungies.io/v0/orders/{orderIdOrNumber}/update \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '{
"status": "PENDING",
"value": 0,
"fee": 0,
"tax": 0,
"currency": "AFN"
}'
{
"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": null,
"user": null,
"lastPaymentId": null,
"lastPaymentNumber": null,
"lastPayment": null,
"subscriptionId": null,
"subscription": null,
"orderNumber": "<string>"
}
}
}
Path Parameters
PATCH /v0/orders/:orderIdOrNumber/update Parameter
Body
application/json
PATCH /v0/orders/:orderIdOrNumber/update Request body
The body is of type object
.
Response
200
application/json
PATCH /v0/orders/:orderIdOrNumber/update Positive response
The response is of type object
.
curl --request PATCH \
--url https://api.fungies.io/v0/orders/{orderIdOrNumber}/update \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '{
"status": "PENDING",
"value": 0,
"fee": 0,
"tax": 0,
"currency": "AFN"
}'
{
"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": null,
"user": null,
"lastPaymentId": null,
"lastPaymentNumber": null,
"lastPayment": null,
"subscriptionId": null,
"subscription": null,
"orderNumber": "<string>"
}
}
}