# Submit a complaint

There can be situations where a buyer isn't happy with the transaction. In these situations, the buyer can [submit a complaint](/apis/openapi/online-complaint/basic.submitcomplaintwithguestbuyer). Complaints can be registered after handover.

Online Transaction

```CURL Create a complaint for an online transaction
curl --location 'https://dev.stage.trustap.com/api/v1/transactions/{transaction_id}/complain_with_guest_buyer' \
--header 'Content-Type: application/json' \
--header 'Trustap-user: 1-615a70d4-b624-4243-95be-a8367b7953ea' \
--user '<API_KEY>:' \
--data '{
"description": "Item was fake"
}'
```


```JSON Response
{
    "buyer_id": "feb33a87-3917-4538-9260-127c8a6b5232",
    "charge": 78,
    "charge_seller": 0,
    "client_id": "trustap-app",
    "created": "2019-12-25T09:00:00Z",
    "currency": "eur",
    "delivered": "2019-12-25T13:00:00Z",
    "description": "Ireland vs Croatia UEFA Nations League",
    "funds_released": "2019-12-26T14:00:00Z",
    "id": 1309,
    "is_payment_in_progress": false,
    "joined": "2019-12-25T10:00:00Z",
    "paid": "2019-12-25T11:00:00Z",
    "posta_hr_tracking": {
        "barcode": "ABC12345",
        "barcode_generated": "2019-12-25T12:00:00Z"
    },
    "price": 1234,
    "quantity": 1,
    "seller_id": "ad5bb99f-85bf-47e1-be0d-15e7541c6ad7",
    "status": "funds_released",
    "tracked": "2019-12-25T12:00:00Z",
    "tracking": {
        "carrier": "ups",
        "tracking_code": "***"
    }
    }
```

Face-to-face transaction

```CURL Create a complaint for a face-to-face transaction
curl --location 'https://dev.stage.trustap.com/api/v1/p2p/transactions/{transaction_id}/complain_with_guest_buyer' \
--header 'Content-Type: application/json' \
--header 'Trustap-user: 1-615a70d4-b624-4243-95be-a8367b7953ea' \
--user '<API_KEY>:' \
--data '{
"description": "Item was fake"
}'
```


```JSON Response
{
  "buyer_id": "feb33a87-3917-4538-9260-127c8a6b5232",
  "charge": 78,
  "charge_seller": 0,
  "client_id": "trustap-app",
  "created": "2019-12-25T09:00:00Z",
  "currency": "eur",
  "delivered": "2019-12-25T13:00:00Z",
  "description": "Ireland vs Croatia UEFA Nations League",
  "funds_released": "2019-12-26T14:00:00Z",
  "id": 1309,
  "is_payment_in_progress": false,
  "joined": "2019-12-25T10:00:00Z",
  "paid": "2019-12-25T11:00:00Z",
  "posta_hr_tracking": {
      "barcode": "ABC12345",
      "barcode_generated": "2019-12-25T12:00:00Z"
  },
  "price": 1234,
  "quantity": 1,
  "seller_id": "ad5bb99f-85bf-47e1-be0d-15e7541c6ad7",
  "status": "funds_released",
  "tracked": "2019-12-25T12:00:00Z",
  "tracking": {
      "carrier": "ups",
      "tracking_code": "***"
  }
  }
```

Creating a complaint automatically sends an email to the buyer and seller with instructions to resolve the conflict.

Sample buyer complaint email
![](/assets/sample-buyer-complaint-email.6688040a0b79e2a456ce1f3b6f122747aca17047e8172ed7dbcc6cd3a45f95a4.afd4d3cf.png)

Sample seller complaint email
![](/assets/sample-seller-complaint-email.580ba3d54fc1ae074b6287ee36a3f77a49a32fa7250579ade47b3ca48902692b.afd4d3cf.png)