openapi: 3.0.0 info: contact: email: support@trustap.com description: > The Trustap API is a REST-based API for managing user data and transactions for Trustap users. Note that, like Stripe, all API `price` and `charge` fields expect amounts to be provided in a currency's smallest unit. See [the Stripe documentation](https://stripe.com/docs/currencies#zero-decimal) for more details. API Keys -------- Some endpoints such as `/charge` endpoints can be accessed directly using an API key. API keys are provided as the "username" portion of a basic auth authentication. For example, the Trustap fee for a transaction can be determined using the following cURL request with an API key: ``` bash curl -i -X GET -u ':' 'https://api.test.trustap.com/v2/fees?currency=usd&amount=896' ``` Deprecation ----------- Deprecated endpoints have a description that describes what endpoints/approach should be used instead. Deprecated endpoints will remain available in the current API version, but will be removed from subsequent API versions. To ensure a smooth migration to later API versions, avoid using deprecated endpoints and replace them with their recommended alternatives when they are deprecated. Production ---------- This documentation references the staging environment of the Trustap API, which is available at `https://api.test.trustap.com` and uses the `trustap-stage` realm during authentication. This environment can be used for implementing and testing features using test credit cards, bank accounts, etc. When all features using Trustap have been implemented and tested sufficiently, the production environment of the Trustap API can be used to process actual currency. This environment is available at `https://api.trustap.com` and uses the `trustap` realm during authentication. Note that only your client ID will be the same in the staging and production Trustap API environments; your client secret and API key will be different in the two environments. title: Trustap API version: 2.0.1 paths: /v2/carriers: get: description: | This returns the carriers that are currently supported for automated tracking. The carrier `name` should be shown to users but the `code` should be submitted to the `/track` endpoint when submitting tracking details. Likewise, when showing a transaction to the user, the `carrier` field stored with the transaction should be used to index these carriers and show the human-readable name of the carrier to the user, if this index is found. operationId: v2_transactions.getSupportedCarriers responses: "200": description: OK content: application/json: schema: items: $ref: "#/components/schemas/v2_transactions.Carrier" type: array summary: Get the supported carriers tags: - Shipping x-toc-endpoint: context: v2_carriers meta: log_req_body: true log_resp_body: true require_active_country: false /v2/experiences: get: operationId: experiences.getExperiences parameters: - description: | Filter experiences by activity. Filtering is case sensitive. in: query name: activity schema: type: string - description: | Filter experiences by category. Filtering is case sensitive. in: query name: category schema: type: string - description: | Filter experiences by title. Filtering is case insensitive and can contain partial titles. in: query name: title schema: type: string - description: | Filter experiences on and after this date. in: query name: start_date schema: type: string - description: | Filter experiences on and before this date. in: query name: end_date schema: type: string - description: | Filter experiences by country. Filtering is case insensitive. in: query name: country schema: type: string - description: | Page number. in: query name: page schema: type: integer format: int64 - description: | Items per page (max 100) in: query name: page_size schema: type: integer format: int64 responses: "200": description: Returns a paginated list of supported experiences content: application/json: schema: $ref: "#/components/schemas/experiences.PaginatedExperiences" security: - APIKey: [] summary: Get supported experiences x-toc-endpoint: context: experiences /v2/fees: get: description: | This returns the Trustap fee, in the `currency`'s smallest unit, for a transaction involving goods with the supplied `amount`. See [the Stripe documentation](https://stripe.com/docs/currencies#zero-decimal) for more details. operationId: v2_transactions.getFees parameters: - description: | The currency that the `amount` is specified in. in: query name: currency required: true schema: type: string format: currency - description: | The price of the goods being sold in this transaction, in the `currency`'s smallest unit. For example, if a trading card is being sold for $12.34 (with `currency` as `usd`), then the request for the fees for this transaction would be `/v2/fees?amount=1234¤cy=usd`. in: query name: amount required: true schema: type: integer format: int64 - description: | Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees or local taxes. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). Defaults to 0 if not provided. in: query name: amount_extra required: false schema: type: integer format: int64 - description: > Represents an additional charge to be paid by the buyer, seller or client. Use this field to include costs like shipping surcharges. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). in: query name: amount_postage required: false schema: type: integer format: int64 - description: | The payment method that will be used to pay for the transaction. This is necessary because different payment methods may result in different fees. Supports `card` and `bank_transfer`. The default value is `card`. in: query name: payment_method required: false schema: type: string - description: | The fee config for which the fees are computed. in: query name: fees_config required: false schema: type: integer format: int64 responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Fees" "400": description: Bad Request content: application/json: schema: example: code: negative_amount message: "`amount` cannot be negative" properties: code: description: | * `unsupported_combination`: The provided payment method, fee config and currency combination isn't supported. enum: - currency_missing - invalid_amount - negative_amount - amount_too_low - unsupported_currency - invalid_fee_config - unsupported_combination type: string message: type: string required: - code - message type: object summary: Get the Trustap fee for a transaction tags: - Payment x-toc-endpoint: context: p2p_optional_user meta: log_req_body: true log_resp_body: true require_active_country: false /v2/guest_users: post: description: > This endpoint creates a new guest user which can be used as the buyer or the seller in a transaction. Guest users can be used to create transactions for users that don't yet have login details, or who choose not to use the logged-in user for creating the new transaction. Emails are sent to guest users which will contain details for adding guest transactions to their logged-in profile. operationId: v2_users.createGuestUser requestBody: content: application/json: schema: example: country_code: IE email: guest@test.com first_name: Test last_name: User tos_acceptance: ip: 192.168.1.2 unix_timestamp: 1672531200 properties: country_code: type: string email: minLength: 1 type: string first_name: minLength: 1 type: string last_name: minLength: 1 type: string tos_acceptance: $ref: "#/components/schemas/v2_users.TosAcceptance" required: - email - country_code - tos_acceptance type: object required: true responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/v2_users.User" "400": description: Bad Request content: application/json: schema: properties: code: enum: - invalid_email - missing_country_code - missing_tos_acceptance - invalid_tos_acceptance_date - invalid_country_code type: string message: type: string required: - code - message type: object security: - APIKey: [] summary: Create a new guest user tags: - Buyers and Sellers x-toc-endpoint: context: users_client_access meta: log_req_body: false log_resp_body: false /v2/transactions: post: description: | Offline access is allowed for this endpoint. operationId: v2_transactions.createTransaction requestBody: content: application/json: schema: properties: amount: description: > The price of the goods being sold in this transaction, in the `currency`'s smallest unit. For example, if a trading card is being sold for $12.34 (with `currency` as `usd`), then the body would contain `{"amount": 1234, "currency": "usd"}`. format: int64 type: integer amount_extra: description: > Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees or local taxes. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). Defaults to 0 if not provided. format: int64 type: integer amount_postage: description: > Represents an additional charge to be paid by the buyer, seller or client. Use this field to include costs like shipping surcharges. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). format: int64 type: integer buyer_id: description: > The ID of the user that will be the buyer in this transaction. type: string contains_shipping: description: | Specifies if the transactions contains a shippable item and the shipping details should be collected from the buyer. type: boolean currency: description: | The currency that the `amount` is specified in. format: currency type: string x-toc-ref: "#/definitions/Currency" description: description: A description of the goods being sold. type: string fees_buyer: description: > The buyer fees for this transaction, in the `currency`'s smallest unit. format: int64 type: integer fees_config: description: The fee config for which the fees are computed. format: int64 type: integer fees_seller: description: > The seller fees for this transaction, in the `currency`'s smallest unit. format: int64 type: integer image_url: description: > URL of the image displayed on the Trustap payment page to show the buyer the item they are paying for. Supports jpg, png, gif, bmp, webp and svg files. Images displayed as a squares. Non-square images are cropped. format: absolute_url maxLength: 2047 type: string payment_method: description: | The payment method that will be used to pay for the transaction. This is necessary because different payment methods may result in different fees. Supports `card` and `bank_transfer`. The default value is `card`. type: string role: description: | The role of the user creating the transaction. Supported values are `buyer` and `seller`. type: string x-toc-ref: "#/definitions/Role" seller_id: description: > The ID of the user that will be the seller in this transaction. type: string required: - currency - amount - fees_buyer - description type: object required: true responses: "201": description: Created content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-def29dfe-8626-48a2-8863-b6fdf2b96ff1 is_guest: true client_id: 5ad5451d-70c7-43c6-86c9-e1d90556856c deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-07-30T15:49:46Z joined: 2026-07-30T15:49:46Z by_time: - at: 2026-07-30T15:49:46Z code: created - at: 2026-07-30T15:49:46Z code: joined funds_release: refunds: [] released_to_seller: false id: tx_01kysvfb1ff1j8st5akj3vqknf metadata: {} payment_link: https://actions.stage.trustap.com/transactions/tx_01kysvfb1ff1j8st5akj3vqknf/pay pricing: amount: 20000 amount_extra: 200 amount_postage: 500 currency: gbp fees: buyer: 661 buyer_client: 0 seller: 0 seller_client: 0 postage_bearer: buyer seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: joined "400": description: Bad Request content: application/json: schema: example: code: negative_amount message: "`price` cannot be negative" properties: code: enum: - invalid_currency - missing_user_id - invalid_user_id - missing_seller_id - missing_buyer_id - invalid_seller_id - invalid_buyer_id - incorrect_charge - negative_amount - amount_too_low - invalid_charge_config - missing_role - invalid_role - unsupported_role type: string message: type: string required: - code - message type: object security: - APIKey: [] summary: Create a new transaction tags: - Transactions x-toc-endpoint: context: v2_create_transaction meta: log_req_body: true log_resp_body: true skip_offline_scope_check: true "/v2/transactions/{transaction_id}": get: operationId: v2_transactions.getTransaction parameters: - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-def29dfe-8626-48a2-8863-b6fdf2b96ff1 is_guest: true client_id: 5ad5451d-70c7-43c6-86c9-e1d90556856c deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-07-30T15:49:46Z joined: 2026-07-30T15:49:46Z by_time: - at: 2026-07-30T15:49:46Z code: created - at: 2026-07-30T15:49:46Z code: joined funds_release: refunds: [] released_to_seller: false id: tx_01kysvfb1ff1j8st5akj3vqknf metadata: {} payment_link: https://actions.stage.trustap.com/transactions/tx_01kysvfb1ff1j8st5akj3vqknf/pay pricing: amount: 20000 amount_extra: 200 amount_postage: 500 currency: gbp fees: buyer: 661 buyer_client: 0 seller: 0 seller_client: 0 postage_bearer: buyer seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: joined summary: Get a transaction by its ID tags: - Transactions x-toc-endpoint: context: p2p_open meta: log_req_body: true log_resp_body: true require_active_country: false "/v2/transactions/{transaction_id}/accept_complaint": post: operationId: v2_transactions.acceptComplaintForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a complaint: accepted: 2026-07-31T18:34:53Z category: other description: Item arrived damaged deadlines: complaints: 2026-07-31T18:38:49Z description: Trustap socks events: by_key: complaint_submitted: 2026-07-31T18:34:09Z created: 2026-07-31T18:31:13Z delivered: 2026-07-31T18:33:49Z joined: 2026-07-31T18:31:13Z paid: 2026-07-31T18:31:58Z payment_accepted: 2026-07-31T18:33:07Z refunded: 2026-07-31T18:34:52Z tracked: 2026-07-31T18:33:38Z by_time: - at: 2026-07-31T18:31:13Z code: created - at: 2026-07-31T18:31:13Z code: joined - at: 2026-07-31T18:31:58Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:33:07Z by: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 code: payment_accepted - at: 2026-07-31T18:33:38Z code: tracked - at: 2026-07-31T18:33:49Z code: delivered - at: 2026-07-31T18:34:09Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: complaint_submitted - at: 2026-07-31T18:34:52Z code: refunded funds_release: refunds: - amount: 20000 id: "4984" released_to_seller: false id: tx_01kywq3p00eaf8h40zmtv6mxhz metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 seller: 0 seller_client: 0 seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: refunded tracking: carrier: ups tracking_code: "345345123" "400": description: Bad Request content: application/json: schema: properties: code: enum: - funds_already_released - deposit_not_paid - deposit_already_refunded - not_complained type: string message: type: string required: - code - message type: object summary: Accept a complaint for this transaction tags: - Transaction Issues x-toc-endpoint: context: p2p meta: log_req_body: true log_resp_body: true require_active_country: true skip_offline_scope_check: true "/v2/transactions/{transaction_id}/accept_payment": post: operationId: v2_transactions.acceptPaymentForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-def29dfe-8626-48a2-8863-b6fdf2b96ff0 is_guest: true client_id: 5ad5451d-70c7-43c6-86c9-e1d90556856c deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-04-29T11:04:26Z joined: 2026-04-29T11:04:26Z paid: 2026-04-29T11:05:19Z payment_accepted: 2026-04-29T11:06:06Z by_time: - at: 2026-04-29T11:04:26Z code: created - at: 2026-04-29T11:04:26Z code: joined - at: 2026-04-29T11:05:19Z by: 1-def29dfe-8626-48a2-8863-b6fdf2b96ff0 code: paid - at: 2026-04-29T11:06:06Z by: 1-3f546125-2ec2-4b14-87f6-54a14ae73e98 code: payment_accepted funds_release: refunds: [] released_to_seller: false id: tx_01kq7pz74mffj9x5vsesqkve08 metadata: {} pricing: amount: 20000 amount_extra: 0 currency: gbp fees: buyer: 640 buyer_client: 0 international_payment: 310 seller: 0 seller_client: 0 seller: id: 1-3f546125-2ec2-4b14-87f6-54a14ae73e98 is_guest: true status: payment_accepted summary: Accept the payment for a transaction tags: - Payment x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/bank_transfer_details": get: description: > Get the bank transfer details for a transaction with payment method `bank_transfer`. operationId: v2_transactions.getBankTransferDetails parameters: - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.BankTransferDetails" "400": description: Bad Request content: application/json: schema: properties: code: enum: - payment_method_not_bank_transfer - paid_with_balance type: string message: type: string required: - code - message type: object summary: Get the bank transfer details for a transaction tags: - Transactions x-toc-endpoint: context: p2p_open meta: log_req_body: true log_resp_body: true require_active_country: false "/v2/transactions/{transaction_id}/buyer_details": get: operationId: v2_transactions.getBuyerDetailsForTransaction parameters: - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.UserDetails" summary: Get the buyer's contact details for a transaction tags: - Transactions x-toc-endpoint: context: p2p_open meta: log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/cancel": post: operationId: v2_transactions.cancelTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: properties: description: description: | A description of the cancellation reason. type: string required: - description type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true cancellation: description: Colour does not match description client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: ? complaints description: Trustap socks events: by_key: cancelled: 2026-07-31T16:14:03Z created: 2026-07-31T16:05:12Z joined: 2026-07-31T16:05:12Z by_time: - at: 2026-07-31T16:05:12Z code: created - at: 2026-07-31T16:05:12Z code: joined - at: 2026-07-31T16:14:03Z code: cancelled funds_release: refunds: [] released_to_seller: false id: tx_01kyweratweaf9kv5kn2yz6966 metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 seller: 0 seller_client: 0 seller: id: 1-22ad0309-d966-440c-8296-9989ff65eebf is_guest: true status: cancelled "400": description: Bad Request content: application/json: schema: properties: code: enum: - already_cancelled - handover_already_confirmed type: string message: type: string required: - code - message type: object summary: Cancel a transaction tags: - Transactions x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/claim": post: description: | This endpoint enables a client to claim a transaction on behalf of a Trustap user as a buyer or seller. This endpoint can only be accessed by clients. operationId: v2_transactions.claimTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: properties: role: description: The role of the user claiming the transaction. Supported values are `buyer` and `seller`. type: string x-toc-ref: "#/definitions/Role" required: - role type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: ? complaints description: Trustap socks events: by_key: claimed_by_seller: 2026-07-31T19:25:29Z created: 2026-07-31T19:22:05Z joined: 2026-07-31T19:22:05Z paid: 2026-07-31T19:22:50Z payment_accepted: 2026-07-31T19:23:11Z by_time: - at: 2026-07-31T19:22:05Z code: created - at: 2026-07-31T19:22:05Z code: joined - at: 2026-07-31T19:22:50Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T19:23:11Z by: 9c11d028-252b-4124-bd85-21a650f6a793 code: payment_accepted - at: 2026-07-31T19:25:29Z by: 9c11d028-252b-4124-bd85-21a650f6a793 code: claimed_by_seller funds_release: refunds: [] released_to_seller: false id: tx_01kywt0t07eaf8v1abyr7wpank metadata: {} payment_link: https://actions.stage.trustap.com/transactions/tx_01kywt0t07eaf8v1abyr7wpank/pay pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 international_payment: 316 seller: 0 seller_client: 0 seller: id: 9c11d028-252b-4124-bd85-21a650f6a793 is_guest: false status: payment_accepted "400": description: Bad Request content: application/json: schema: properties: code: enum: - cannot_claim_own_transaction - invalid_role - invalid_user_id - emails_mismatched - user_is_not_guest type: string message: type: string required: - code - message type: object security: - APIKey: [] summary: Claim a transaction on behalf of a Trustap user tags: - Transactions x-toc-endpoint: context: p2p meta: log_req_body: true log_resp_body: true skip_offline_scope_check: true "/v2/transactions/{transaction_id}/confirm_delivery": post: description: | This endpoint allows a user to confirm the delivery of the item in the case that the state of the transaction was not updated asynchronously by Trustap operationId: v2_transactions.confirmDeliveryForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: complaints: 2026-07-31T18:13:10Z description: Trustap socks events: by_key: created: 2026-07-31T17:57:20Z delivered: 2026-07-31T18:08:10Z joined: 2026-07-31T17:57:20Z paid: 2026-07-31T17:58:34Z payment_accepted: 2026-07-31T18:02:31Z tracked: 2026-07-31T18:03:25Z by_time: - at: 2026-07-31T17:57:20Z code: created - at: 2026-07-31T17:57:20Z code: joined - at: 2026-07-31T17:58:34Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:02:31Z by: 1-22ad0309-d966-440c-8296-9989ff65eebf code: payment_accepted - at: 2026-07-31T18:03:25Z code: tracked - at: 2026-07-31T18:08:10Z code: delivered funds_release: refunds: [] released_to_seller: false id: tx_01kywn5ma0eafbk92b1qvfv1dw metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 international_payment: 316 seller: 0 seller_client: 0 seller: id: 1-22ad0309-d966-440c-8296-9989ff65eebf is_guest: true status: delivered tracking: carrier: ups tracking_code: "345345123" "400": description: Bad Request content: application/json: schema: properties: code: enum: - delivery_not_supported - delivery_already_set - invalid_id type: string message: type: string required: - code - message type: object security: - APIKey: [] - OAuth2: [] summary: Confirm delivery for this transaction tags: - Shipping x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/confirm_handover": post: deprecated: true description: | This endpoint is deprecated. Use `POST /transactions/{transaction_id}/confirm_delivery` instead. operationId: v2_transactions.confirmHandoverForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: complaints: 2026-07-31T18:52:59Z description: Trustap socks events: by_key: buyer_handover_confirmed: 2026-07-31T18:47:59Z created: 2026-07-31T18:45:49Z joined: 2026-07-31T18:45:49Z paid: 2026-07-31T18:46:36Z payment_accepted: 2026-07-31T18:46:53Z by_time: - at: 2026-07-31T18:45:49Z code: created - at: 2026-07-31T18:45:49Z code: joined - at: 2026-07-31T18:46:36Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:46:53Z by: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 code: payment_accepted - at: 2026-07-31T18:47:59Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: buyer_handover_confirmed funds_release: refunds: [] released_to_seller: false id: tx_01kywqydvkeaf8yz2sw2q0wmn3 metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 seller: 0 seller_client: 0 seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: delivered summary: Confirm the handover of goods for a transaction tags: - Handover x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/items": post: description: | Adds one or more items to a transaction. Items with a `recurring_period` are billed automatically on that interval. One-time items can be added at any point, including before the transaction has been paid. Recurring items can only be added once the transaction has been paid. operationId: v2_transactions.addTransactionItems parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: properties: items: items: $ref: "#/components/schemas/v2_transactions.TransactionItemBody" type: array required: - items type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" "400": description: > Bad Request `code` can be one of the following: * `duplicate_ref_id`: More than one item in the request has the same `ref_id`. * `items_already_added`: Items have already been added to this transaction. * `already_cancelled`: The transaction was cancelled before it was paid. * `already_rejected`: The transaction was rejected before it was paid. * `invalid_amount`: The combined `amount` + `amount_tax` of all items doesn't match the transaction's amount. * `invalid_amount_extra`: The combined `amount_extra` of all items doesn't match the transaction's `amount_extra`. * `invalid_amount_postage`: The combined `amount_postage` of all items doesn't match the transaction's `amount_postage`. * `negative_amount`: An item's `amount` cannot be negative. * `negative_amount_extra`: An item's `amount_extra` cannot be negative. * `negative_amount_postage`: An item's `amount_postage` cannot be negative. * `negative_amount_tax`: An item's `amount_tax` cannot be negative. * `amount_too_large`: An item's `amount` + `amount_extra` is too large. * `amount_too_low`: An item's `amount` is below the minimum for its currency. * `invalid_quantity`: An item's `quantity` must be greater than zero. * `invalid_billing_type`: An item's `billing_type` isn't `one_time` or `recurring`. * `invalid_recurring_period` * `recurring_period_required`: An item's `billing_type` is `recurring`, but it doesn't have a `recurring_period`. * `unexpected_recurring_period`: An item's `billing_type` is `one_time`, but it has a `recurring_period`. * `recurring_items_require_payment`: An item is recurring, but the transaction hasn't been paid yet. Recurring items can only be added once the transaction has been paid. * `unsupported_recurring_payment_method`: An item is recurring, but the transaction's payment method doesn't support recurring items. * `unsupported_currency` content: application/json: schema: properties: code: enum: - duplicate_ref_id - items_already_added - already_cancelled - already_rejected - invalid_amount - invalid_amount_extra - invalid_amount_postage - negative_amount - negative_amount_extra - negative_amount_postage - negative_amount_tax - amount_too_large - amount_too_low - invalid_quantity - invalid_billing_type - invalid_recurring_period - recurring_period_required - unexpected_recurring_period - recurring_items_require_payment - unsupported_recurring_payment_method - unsupported_currency type: string message: type: string required: - code - message type: object "404": description: Not Found "409": description: > Conflict `code` can be one of the following: * `item_description_mismatch`: An item with `ref_id` already exists with a different description. * `item_tax_code_mismatch`: An item with `ref_id` already exists with a different tax_code. * `item_image_url_mismatch`: An item with `ref_id` already exists with a different image_url. content: application/json: schema: properties: code: enum: - item_description_mismatch - item_tax_code_mismatch - item_image_url_mismatch type: string message: type: string required: - code - message type: object summary: Add items to a transaction tags: - Transactions x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/metadata": post: operationId: v2_transactions.setTransactionMetadata parameters: - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: additionalProperties: true type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-506ec116-f0b3-4ea8-bfd0-ea0e7b9d18aa is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a contains_shipping: true deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-06-16T09:22:35Z joined: 2026-06-16T09:22:35Z by_time: - at: 2026-06-16T09:22:35Z code: created - at: 2026-06-16T09:22:35Z code: joined id: tx_01kv7vtr9vfr5rnttm3n4x17z2 metadata: customer_url: https://my-bike-parts.com/ part_number: "98932" pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 seller: 0 seller_client: 0 seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: joined "400": description: Bad Request content: application/json: schema: properties: code: enum: - too_many_keys - value_too_long - key_too_long - empty_json - unsupported_type type: string message: type: string required: - code - message type: object summary: Set metadata for a transaction tags: - Transactions x-toc-endpoint: context: p2p_open meta: log_req_body: true log_resp_body: true require_active_country: false "/v2/transactions/{transaction_id}/submit_complaint": post: description: | A complaint is submitted for problems with transactions after the order has been shipped or handover has been confirmed. Before that an order issue should be submitted instead. operationId: v2_transactions.submitComplaintForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: properties: category: $ref: "#/components/schemas/v2_transactions.ComplaintCategory" description: type: string required: - description type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a complaint: category: other description: Item arrived damaged deadlines: complaints: 2026-07-31T18:13:10Z description: Trustap socks events: by_key: complaint_submitted: 2026-07-31T18:10:56Z created: 2026-07-31T17:57:20Z delivered: 2026-07-31T18:08:10Z joined: 2026-07-31T17:57:20Z paid: 2026-07-31T17:58:34Z payment_accepted: 2026-07-31T18:02:31Z tracked: 2026-07-31T18:03:25Z by_time: - at: 2026-07-31T17:57:20Z code: created - at: 2026-07-31T17:57:20Z code: joined - at: 2026-07-31T17:58:34Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:02:31Z by: 1-22ad0309-d966-440c-8296-9989ff65eebf code: payment_accepted - at: 2026-07-31T18:03:25Z code: tracked - at: 2026-07-31T18:08:10Z code: delivered - at: 2026-07-31T18:10:56Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: complaint_submitted funds_release: refunds: [] released_to_seller: false id: tx_01kywn5ma0eafbk92b1qvfv1dw metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 international_payment: 316 seller: 0 seller_client: 0 seller: id: 1-22ad0309-d966-440c-8296-9989ff65eebf is_guest: true status: complaint_submitted tracking: carrier: ups tracking_code: "345345123" "400": description: Bad Request content: application/json: schema: properties: code: enum: - remainder_required - already_complained - funds_already_released - complaint_period_expired - handover_or_delivery_required type: string message: type: string required: - code - message type: object summary: Submit a complaint for this transaction tags: - Transaction Issues x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/submit_order_issue": post: description: | An order issue is submitted for problems with transactions after payment confirmation and before the order has been shipped or handover has been confirmed. After that a complaint should be submitted instead. operationId: v2_transactions.submitOrderIssueForTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: properties: category: $ref: "#/components/schemas/v2_transactions.OrderIssueCategory" description: minLength: 1 type: string required: - description type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-07-31T18:38:12Z joined: 2026-07-31T18:38:12Z order_issue_submitted: 2026-07-31T18:42:20Z paid: 2026-07-31T18:39:02Z payment_accepted: 2026-07-31T18:39:24Z by_time: - at: 2026-07-31T18:38:12Z code: created - at: 2026-07-31T18:38:12Z code: joined - at: 2026-07-31T18:39:02Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:39:24Z by: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 code: payment_accepted - at: 2026-07-31T18:42:20Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: order_issue_submitted funds_release: refunds: [] released_to_seller: false id: tx_01kywqgetdeafageg8d7ntam8f metadata: {} order_issue: category: item_not_received description: No contact from seller pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 seller: 0 seller_client: 0 seller: id: 8e5cbedc-e57b-42e5-a3bd-2f9ced81a2d0 is_guest: false status: payment_accepted "400": description: Bad Request content: application/json: schema: properties: code: enum: - remainder_required - payment_not_accepted - handover_already_confirmed - item_already_delivered - order_issue_already_submitted type: string message: type: string required: - code - message type: object "403": description: Forbidden content: application/json: schema: properties: code: enum: - not_buyer type: string message: type: string required: - code - message type: object summary: Submit an order issue for this transaction tags: - Transaction Issues x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: false log_resp_body: false require_active_country: false skip_offline_scope_check: true "/v2/transactions/{transaction_id}/track": post: description: | After the tracking information has been submitted then the state of the transaction will be updated asynchronously by Trustap once the delivery of the item has been confirmed, at which point the `delivered` field of the transaction will be set. operationId: v2_transactions.trackTransaction parameters: - description: Required in client flows, where you make API calls on behalf of another Trustap user. in: header name: Trustap-User required: false schema: type: string - in: path name: transaction_id required: true schema: type: string requestBody: content: application/json: schema: example: carrier: ups tracking_code: "***" properties: carrier: minLength: 1 type: string tracking_code: minLength: 1 type: string required: - carrier - tracking_code type: object required: true responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_transactions.Transaction" examples: response: value: buyer: id: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 is_guest: true client_id: 5a3d7990-9f1c-4e11-8d67-3da5b160c50a deadlines: ? complaints description: Trustap socks events: by_key: created: 2026-07-31T17:57:20Z joined: 2026-07-31T17:57:20Z paid: 2026-07-31T17:58:34Z payment_accepted: 2026-07-31T18:02:31Z tracked: 2026-07-31T18:03:25Z by_time: - at: 2026-07-31T17:57:20Z code: created - at: 2026-07-31T17:57:20Z code: joined - at: 2026-07-31T17:58:34Z by: 1-a5034d6a-1110-4d33-b6dd-c6ff1b3b2e28 code: paid - at: 2026-07-31T18:02:31Z by: 1-22ad0309-d966-440c-8296-9989ff65eebf code: payment_accepted - at: 2026-07-31T18:03:25Z code: tracked funds_release: refunds: [] released_to_seller: false id: tx_01kywn5ma0eafbk92b1qvfv1dw metadata: {} pricing: amount: 20000 amount_extra: 0 currency: eur fees: buyer: 1050 buyer_client: 0 international_payment: 316 seller: 0 seller_client: 0 seller: id: 1-22ad0309-d966-440c-8296-9989ff65eebf is_guest: true status: tracked tracking: carrier: ups tracking_code: "345345123" "400": description: Bad Request content: application/json: schema: properties: code: enum: - invalid_id - empty_carrier - empty_tracking_code - tracking_already_added - payment_details_not_added - tracking_details_deadline_expired - already_cancelled - tracking_not_supported - deposit_not_accepted type: string message: type: string required: - code - message type: object "403": description: Forbidden content: application/json: schema: properties: code: enum: - not_seller type: string message: type: string required: - code - message type: object "409": description: Conflict content: application/json: schema: properties: code: enum: - missing_payment_intent type: string message: type: string required: - code - message type: object summary: Set postal tracking details for a transaction tags: - Shipping x-toc-endpoint: context: p2p_any_user meta: allow_guest_user: true log_req_body: true log_resp_body: true require_active_country: false skip_offline_scope_check: true "/v2/users/{user_id}/account_status": get: description: | This endpoint returns the status of the ability of the user identified by the `user_id` in the path to accept payouts. It can only be accessed with an API key. operationId: v2_users.getAccountPayoutStatus parameters: - in: path name: user_id required: true schema: type: string responses: "200": description: OK content: application/json: schema: $ref: "#/components/schemas/v2_users.AccountPayout" "400": description: | Bad Request `code` can be one of the following: * `invalid_user_id` content: application/json: schema: properties: code: type: string message: type: string required: - code - message type: object security: - APIKey: [] summary: Get the status of a user's account completion tags: - Buyers and Sellers x-toc-endpoint: context: v2_users_account_status meta: disallow_full_user: true log_req_body: true log_resp_body: true security: - APIKey: [] - OAuth2: [] tags: - description: | Users represent users of the platform. name: Buyers and Sellers - description: > Transaction issues endpoints are used for reporting and managing transaction issues. name: Transaction Issues - description: | Endpoints for creating and managing transactions. name: Transactions - description: | Payment endpoints for transactions. name: Payment - description: | Endpoint for confirming handover of goods for transactions. name: Handover - description: | Shipping endpoints for transactions. name: Shipping x-tagGroups: - name: Users tags: - Buyers and Sellers - name: Payment tags: - Payment - name: Transactions tags: - Transactions - Transaction Issues - name: Delivery tags: - Handover - Shipping servers: - url: https://api.test.trustap.com components: securitySchemes: APIKey: type: http scheme: basic OAuth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://sso.trustap.com/auth/realms/trustap-stage/protocol/openid-connect/auth tokenUrl: https://sso.trustap.com/auth/realms/trustap-stage/protocol/openid-connect/token scopes: {} schemas: experiences.Experience: properties: activity: type: string category: type: string date: type: string display_title: type: string id: type: integer image: type: string is_featured: type: boolean location: type: string max_price: type: integer min_price: type: integer open_time: type: string participants: items: $ref: "#/components/schemas/experiences.Participant" type: array title: type: string total_listings: type: integer type: type: string venue: $ref: "#/components/schemas/experiences.Venue" required: - id type: object experiences.PaginatedExperiences: properties: experiences: items: $ref: "#/components/schemas/experiences.Experience" type: array pagination: properties: page: type: integer page_size: type: integer total_items: type: integer total_pages: type: integer required: - page - page_size - total_items - total_pages type: object type: object experiences.Participant: properties: id: type: integer image: type: string name: type: string type: type: string required: - id type: object experiences.Venue: properties: city: type: string country: type: string id: type: integer name: type: string state: type: string required: - id type: object v2_transactions.BankTransferDetails: properties: processor: type: string stripe: $ref: "#/components/schemas/v2_transactions.StripeBankTransferDetails" required: - processor type: object v2_transactions.BillingType: enum: - one_time - recurring example: one_time type: string v2_transactions.Carrier: properties: code: type: string name: type: string required: - code - name type: object v2_transactions.ComplaintCategory: enum: - item_not_received - item_not_as_described - other example: other type: string v2_transactions.Events: properties: by_key: description: | These fields indicate the time that the first instance of the given event occurred. Where events can repeat (such as `refunded`), duplicate instances can be retrieved from the `by_time` sibling property. properties: buyer_handover_confirmed: format: date-time type: string cancelled: format: date-time type: string claimed_by_buyer: format: date-time type: string claimed_by_seller: format: date-time type: string complaint_period_ended: format: date-time type: string complaint_submitted: format: date-time type: string created: format: date-time type: string delivered: format: date-time type: string funds_released: format: date-time type: string joined: format: date-time type: string order_issue_submitted: format: date-time type: string paid: format: date-time type: string payment_accepted: format: date-time type: string refunded: format: date-time type: string rejected: format: date-time type: string review_flagged: format: date-time type: string seller_handover_confirmed: format: date-time type: string tracked: format: date-time type: string required: - created type: object by_time: items: properties: at: format: date-time type: string by: description: | This contains the ID of the user that triggered this event. It is not present for events that are triggered by the platform, such as by automated systems. type: string code: type: string required: - code - at type: object type: array required: - by_time - by_key type: object v2_transactions.Fees: example: buyer: 78 config: 1 seller: 0 properties: buyer: format: int64 type: integer config: format: int64 type: integer seller: format: int64 type: integer required: - buyer - seller - config type: object v2_transactions.OrderIssueCategory: enum: - item_not_received - other example: other type: string v2_transactions.Pricing: properties: amount: format: int64 type: integer amount_extra: description: | Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees or local taxes. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). Defaults to 0 if not provided. format: int64 type: integer amount_postage: description: > Represents an additional charge to be paid by the buyer, seller or client. Use this field to include costs like shipping surcharges. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). format: int64 type: integer currency: description: > The currency of the transaction. Note that, at present, the buyer must pay using the transaction's currency and the seller will be paid in the transaction's currency. Conversion to this currency will happen automatically during payment if the buyer pays with a different currency. format: currency type: string fees: properties: buyer: format: int64 type: integer buyer_client: format: int64 type: integer international_payment: format: int64 type: integer seller: format: int64 type: integer seller_client: format: int64 type: integer required: - buyer - seller - buyer_client - seller_client type: object postage_bearer: description: | Indicates who is responsible for paying the postage amount. Only present if `amount_postage` is provided. enum: - buyer - seller - client type: string required: - amount - amount_extra - currency - fees type: object v2_transactions.RecurringPeriod: enum: - day - week - month - year example: month type: string v2_transactions.Status: enum: - created - joined - rejected - cancelled - paid - review_flagged - payment_accepted - complaint_submitted - complaint_period_ended - refunded - tracked - delivered - funds_released - claimed_by_buyer - claimed_by_seller type: string v2_transactions.StripeAba: properties: account_number: type: string bank_name: type: string routing_number: type: string required: - account_number - bank_name - routing_number type: object v2_transactions.StripeBankTransferDetails: properties: amount: format: int64 type: integer currency: type: string financial_address: $ref: "#/components/schemas/v2_transactions.StripeFinancialAddress" hosted_instructions_url: type: string reference: type: string required: - amount - currency - hosted_instructions_url - reference - financial_address type: object v2_transactions.StripeFinancialAddress: properties: aba: $ref: "#/components/schemas/v2_transactions.StripeAba" iban: $ref: "#/components/schemas/v2_transactions.StripeIban" sort_code: $ref: "#/components/schemas/v2_transactions.StripeSortCode" swift: $ref: "#/components/schemas/v2_transactions.StripeSwift" type: object v2_transactions.StripeIban: properties: account_holder_name: type: string bic: type: string country: type: string iban: type: string required: - account_holder_name - bic - country - iban type: object v2_transactions.StripeSortCode: properties: account_holder_name: type: string account_number: type: string sort_code: type: string required: - account_holder_name - account_number - sort_code type: object v2_transactions.StripeSwift: properties: account_number: type: string bank_name: type: string swift_code: type: string required: - account_number - bank_name - swift_code type: object v2_transactions.Tracking: properties: carrier: type: string tracking_code: type: string required: - carrier - tracking_code type: object v2_transactions.Transaction: example: buyer: id: "9097" is_guest: false client_id: "1234" deadlines: complaints: 2019-12-25T15:00:00Z description: Soccer ticket events: by_key: created: 2019-12-25T09:00:00Z delivered: 2019-12-25T16:00:00Z funds_released: 2019-12-25T17:00:00Z joined: 2019-12-25T10:00:00Z paid: 2019-12-25T11:00:00Z payment_accepted: 2019-12-25T12:00:00Z by_time: [] funds_release: refunds: [] released_to_seller: false id: tx_21066 pricing: amount: 1000 amount_extra: 0 currency: eur fees: buyer: 110 buyer_client: 10 international_payment: 20 seller: 0 seller_client: 5 review: approved: true outcome_reason: Not fraudulent. seller: id: "9790" is_guest: false status: funds_released properties: buyer: $ref: "#/components/schemas/v2_transactions.User" cancellation: properties: description: type: string required: - description type: object client_id: type: string complaint: properties: accepted: format: date-time type: string category: $ref: "#/components/schemas/v2_transactions.ComplaintCategory" description: type: string required: - description - category type: object contains_shipping: type: boolean deadlines: description: | This property contains all possible actions that have associated deadlines for completion. Actions with `null` do not have deadlines currently pending. properties: complaints: format: date-time type: string nullable: true type: object description: type: string events: $ref: "#/components/schemas/v2_transactions.Events" funds_release: properties: payout_id: type: string refunds: items: properties: amount: format: int64 type: integer id: type: string required: - id - amount type: object type: array released_to_seller: type: boolean required: - released_to_seller - refunds type: object id: format: type_id type: string items: description: | The items added to the transaction. items: $ref: "#/components/schemas/v2_transactions.TransactionItem" type: array join_code: type: string metadata: additionalProperties: true description: Arbitrary key-value string pairs for adding extra information to transactions. type: object order_issue: properties: category: $ref: "#/components/schemas/v2_transactions.OrderIssueCategory" description: type: string required: - description - category type: object payment_link: description: | URL to the actions page where the buyer can pay the deposit. type: string pricing: $ref: "#/components/schemas/v2_transactions.Pricing" review: properties: approved: type: boolean outcome_reason: type: string required: - approved - outcome_reason type: object seller: $ref: "#/components/schemas/v2_transactions.User" status: $ref: "#/components/schemas/v2_transactions.Status" tracking: $ref: "#/components/schemas/v2_transactions.Tracking" required: - id - status - client_id - pricing - deadlines - description - events type: object v2_transactions.TransactionItem: properties: amount: format: int64 type: integer amount_extra: format: int64 type: integer amount_postage: format: int64 type: integer amount_tax: format: int64 type: integer billing_type: $ref: "#/components/schemas/v2_transactions.BillingType" created: format: date-time type: string description: type: string image_url: description: | URL of an image representing the item, shown to the buyer. Supports jpg, png, gif, bmp, webp and svg files. format: absolute_url maxLength: 2047 type: string item_id: type: string quantity: format: int64 type: integer recurring_period: $ref: "#/components/schemas/v2_transactions.RecurringPeriod" ref_id: type: string tax_code: type: string required: - item_id - description - amount - billing_type - created type: object v2_transactions.TransactionItemBody: properties: amount: description: | The base price of a single unit of the item, in the transaction's currency's smallest unit. format: int64 type: integer amount_extra: description: | This field adds an additional cost to the item. Use it to charge a buyer for things like fulfillment costs. The `amount_extra` field is separate from the `amount` field. It applies once per item and isn't multiplied by `quantity`. This separation displays the additional cost apart from the base price on the Trustap payment page. It also helps clients track the breakdown of charges. format: int64 type: integer amount_postage: description: | This field adds an additional cost to the item. Use it to charge a buyer for things like shipping costs. The `amount_postage` field is separate from the `amount` field. It applies once per item and isn't multiplied by `quantity`. This separation displays the additional cost apart from the base price on the Trustap payment page. It also helps clients track the breakdown of charges. format: int64 type: integer amount_tax: description: | Unlike `amount_extra` and `amount_postage`, this field doesn't add an additional cost to the item. It's the portion of a single unit's `amount` that is tax, so use `amount` and `amount_tax` together to break the per-unit amount down into its base amount and the tax portion. The combined `quantity * (amount + amount_tax)` of all items must still equal the transaction's amount. format: int64 type: integer billing_type: $ref: "#/components/schemas/v2_transactions.BillingType" description: type: string image_url: description: | URL of an image representing the item, shown to the buyer. Supports jpg, png, gif, bmp, webp and svg files. format: absolute_url maxLength: 2047 type: string quantity: description: | The number of units of this item. `amount` and `amount_tax` are per-unit values: the combined `quantity * (amount + amount_tax)` across all items must equal the transaction's amount. Defaults to `1`. format: int64 minimum: 1 type: integer recurring_period: $ref: "#/components/schemas/v2_transactions.RecurringPeriod" ref_id: description: | An optional ID that can be provided to tie the item to a resource in the client's own system. type: string tax_code: description: | A code identifying the type of goods or service being sold, used to determine the applicable tax treatment. type: string required: - description - amount - billing_type type: object v2_transactions.User: example: id: "9097" is_guest: false properties: id: type: string is_guest: type: boolean required: - id - is_guest type: object v2_transactions.UserDetails: properties: email: type: string name: $ref: "#/components/schemas/v2_transactions.UserDetailsName" phone: type: string required: - email type: object v2_transactions.UserDetailsName: properties: first: type: string last: type: string required: - first - last type: object v2_users.AccountPayout: example: status: verifying properties: status: description: > Account payout status will be one of the following: - `complete`: The user has completed their profile and payment information, and can accept payouts. - `verifying`: The user has submitted profile and payment information, which is currently being verified. - `incomplete`: The user has not adequately filled out their payment information, or may need to update or ammend the provided information before they can accept payouts. enum: - complete - verifying - incomplete type: string required: - status type: object v2_users.TosAcceptance: properties: ip: minLength: 1 type: string unix_timestamp: format: int64 type: integer required: - unix_timestamp - ip type: object v2_users.User: example: created_at: 2019-12-25T13:00:00Z email: jo@example.com first_name: Test id: 1-feb33a87-3917-4538-9260-127c8a6b5232 last_name: User properties: created_at: format: date-time type: string deleted_at: format: date-time type: string email: type: string first_name: minLength: 1 type: string id: type: string last_name: minLength: 1 type: string required: - id - email - created_at type: object