# Cancel Order

<mark style="color:green;">`POST`</mark>&#x20;

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json        |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer pk\_partner\_xxx |

#### Request Body

| Name                                                 | Type   | Description                                                        |
| ---------------------------------------------------- | ------ | ------------------------------------------------------------------ |
| partner\_order\_id<mark style="color:red;">\*</mark> | String | Order id                                                           |
| signature<mark style="color:red;">\*</mark>          | String | sha-512-of-req-body-signed-with-SK\_merchant\_xxx+SK\_partner\_xxx |

{% tabs %}
{% tab title="200: OK successful response" %}

```javascript
{
  "status": "success",
  "message": "",
  "partner_order_id": ""
}
```

{% endtab %}

{% tab title="400: Bad Request failed response" %}

```javascript
{
  "status": "fail",
  "messsage": ""
}
```

{% endtab %}
{% endtabs %}

### example request -code

{% tabs %}
{% tab title="Node" %}

```
const fetch = require('node-fetch');

fetch("https://exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/CancelOrder", {
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer pk_partner_xxxx",
    "cookie": "connect.sid=s%253AoNBPv4ez8npeuKVKlS9KwX_1Dshiamlf.n8opjPuoF3XsU%252Be0VTLMUe6xzeAXmpCfQrpW9KW1KDs"
  },
  "body": {
    "partner_order_id": "",
    "signature": "sha-512-of-req-body-signed-with-SK_merchant_xxx+SK_partner_xxx"
  }
})
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

{% endtab %}
{% endtabs %}
