{"templateId":"markdown","versions":[{"version":"v1.0","label":"v1.0","link":"/docs/v1.0/guides/transactions/complaint","default":false,"active":true,"folderId":"a2557b8d"},{"version":"v2.0","label":"v2.0 (latest version)","link":"/docs/guides/transactions/complaint","default":true,"active":false,"folderId":"a2557b8d"}],"sharedDataIds":{"sidebar":"sidebar-docs/@v1.0/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["tabs","tab"]},"type":"markdown"},"seo":{"title":"Submit a complaint","description":"Submit a complaint for a transaction.","llmstxt":{"hide":false,"title":"Trustap API","description":"Trustap is an API for end-to-end transaction solution that seamlessly integrates payments, fulfillment, and support into your marketplace. Trustap is an escrow API service facilitating secure transactions.","sections":[{"title":"Intro","description":"Trustap API introduction.","includeFiles":["docs/v2.0/intro/*.md"],"excludeFiles":[]},{"title":"Concepts","description":"Trustap Concepts","includeFiles":["docs/v2.0/concepts/*.md"],"excludeFiles":["docs/v2.0/concepts/errors.md"]},{"title":"Guides","description":"Trustap integration guides","includeFiles":["docs/v2.0/guides/**/*.md"],"excludeFiles":["docs/v2.0/guides/listing/"]},{"title":"API Reference","description":"Trustap API reference guide","includeFiles":["**/apis/@v2.0/openapi.yaml"],"excludeFiles":[]}],"excludeFiles":[]},"meta":[{"name":"robots","content":"noindex"}]},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"submit-a-complaint","__idx":0},"children":["Submit a complaint"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There can be situations where a buyer isn't happy with the transaction. In these situations, the buyer can ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/v1.0/openapi/online-complaint/basic.submitcomplaintwithguestbuyer"},"children":["submit a complaint"]},". Complaints can be registered after handover."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Online Transaction","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"CURL","data-title":"Create a complaint for an online transaction","header":{"title":"Create a complaint for an online transaction","controls":{"copy":{}}},"source":"curl --location 'https://dev.stage.trustap.com/api/v1/transactions/{transaction_id}/complain_with_guest_buyer' \\\n--header 'Content-Type: application/json' \\\n--header 'Trustap-user: 1-615a70d4-b624-4243-95be-a8367b7953ea' \\\n--user '<API_KEY>:' \\\n--data '{\n\"description\": \"Item was fake\"\n}'\n","lang":"CURL"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"JSON","data-title":"Response","header":{"title":"Response","controls":{"copy":{}}},"source":"{\n    \"buyer_id\": \"feb33a87-3917-4538-9260-127c8a6b5232\",\n    \"charge\": 78,\n    \"charge_seller\": 0,\n    \"client_id\": \"trustap-app\",\n    \"created\": \"2019-12-25T09:00:00Z\",\n    \"currency\": \"eur\",\n    \"delivered\": \"2019-12-25T13:00:00Z\",\n    \"description\": \"Soccer ticket\",\n    \"funds_released\": \"2019-12-26T14:00:00Z\",\n    \"id\": 1309,\n    \"is_payment_in_progress\": false,\n    \"joined\": \"2019-12-25T10:00:00Z\",\n    \"paid\": \"2019-12-25T11:00:00Z\",\n    \"posta_hr_tracking\": {\n        \"barcode\": \"ABC12345\",\n        \"barcode_generated\": \"2019-12-25T12:00:00Z\"\n    },\n    \"price\": 1234,\n    \"quantity\": 1,\n    \"seller_id\": \"ad5bb99f-85bf-47e1-be0d-15e7541c6ad7\",\n    \"status\": \"funds_released\",\n    \"tracked\": \"2019-12-25T12:00:00Z\",\n    \"tracking\": {\n        \"carrier\": \"ups\",\n        \"tracking_code\": \"***\"\n    }\n    }\n","lang":"JSON"},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Face-to-face transaction","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"CURL","data-title":"Create a complaint for a face-to-face transaction","header":{"title":"Create a complaint for a face-to-face transaction","controls":{"copy":{}}},"source":"curl --location 'https://dev.stage.trustap.com/api/v1/p2p/transactions/{transaction_id}/complain_with_guest_buyer' \\\n--header 'Content-Type: application/json' \\\n--header 'Trustap-user: 1-615a70d4-b624-4243-95be-a8367b7953ea' \\\n--user '<API_KEY>:' \\\n--data '{\n\"description\": \"Item was fake\"\n}'\n","lang":"CURL"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"JSON","data-title":"Response","header":{"title":"Response","controls":{"copy":{}}},"source":"{\n  \"buyer_id\": \"feb33a87-3917-4538-9260-127c8a6b5232\",\n  \"charge\": 78,\n  \"charge_seller\": 0,\n  \"client_id\": \"trustap-app\",\n  \"created\": \"2019-12-25T09:00:00Z\",\n  \"currency\": \"eur\",\n  \"delivered\": \"2019-12-25T13:00:00Z\",\n  \"description\": \"Soccer ticket\",\n  \"funds_released\": \"2019-12-26T14:00:00Z\",\n  \"id\": 1309,\n  \"is_payment_in_progress\": false,\n  \"joined\": \"2019-12-25T10:00:00Z\",\n  \"paid\": \"2019-12-25T11:00:00Z\",\n  \"posta_hr_tracking\": {\n      \"barcode\": \"ABC12345\",\n      \"barcode_generated\": \"2019-12-25T12:00:00Z\"\n  },\n  \"price\": 1234,\n  \"quantity\": 1,\n  \"seller_id\": \"ad5bb99f-85bf-47e1-be0d-15e7541c6ad7\",\n  \"status\": \"funds_released\",\n  \"tracked\": \"2019-12-25T12:00:00Z\",\n  \"tracking\": {\n      \"carrier\": \"ups\",\n      \"tracking_code\": \"***\"\n  }\n  }\n","lang":"JSON"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Creating a complaint automatically sends an email to the buyer and seller with instructions to resolve the conflict."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"label":"Sample buyer complaint email","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sample-buyer-complaint-email.6688040a0b79e2a456ce1f3b6f122747aca17047e8172ed7dbcc6cd3a45f95a4.df2da560.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"label":"Sample seller complaint email","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/sample-seller-complaint-email.580ba3d54fc1ae074b6287ee36a3f77a49a32fa7250579ade47b3ca48902692b.df2da560.png","alt":""},"children":[]}]}]}]}]},"headings":[{"value":"Submit a complaint","id":"submit-a-complaint","depth":1}],"frontmatter":{"seo":{"title":"Submit a complaint","description":"Submit a complaint for a transaction.","meta":[{"name":"robots","content":"noindex"}]},"excludeFromSearch":true},"lastModified":"2026-04-22T08:41:41.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/v1.0/guides/transactions/complaint","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}