- Accept the payment for a transaction
Get the Trustap fee for a transaction
Accept the payment for a...
Security
APIKey or OAuth2
POST
- APIKey
- OAuth2
curl -i -X POST \
-u '<API_KEY>:' \
'https://api.test.trustap.com/v2/transactions/{transaction_id}/accept_payment' \
-H 'Trustap-User: string'OK
This property contains all possible actions that have associated deadlines for completion. Actions with null do not have deadlines currently pending.
Example:
{ "complaints": "2019-12-25T15:00:00Z" }
Example:
{ "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": [] }
Example:
{ "amount": 1000, "amount_extra": 0, "currency": "eur", "fees": { "buyer": 110, "buyer_client": 10, "international_payment": 20, "seller": 0, "seller_client": 5 } }
Enum:"created""joined""rejected""cancelled""paid""review_flagged""payment_accepted""complaint_submitted""complaint_period_ended""refunded"
Example:"funds_released"
Response
{ "buyer": { "id": "1-def29dfe-8626-48a2-8863-b6fdf2b96ff0", "is_guest": true }, "client_id": "5ad5451d-70c7-43c6-86c9-e1d90556856c", "deadlines": { "complaints": null }, "description": "Trustap socks", "events": { "by_key": { … }, "by_time": [ … ] }, "funds_release": { "refunds": [], "released_to_seller": false }, "id": "tx_01kq7pz74mffj9x5vsesqkve08", "metadata": {}, "pricing": { "amount": 20000, "amount_extra": 0, "currency": "gbp", "fees": { … } }, "seller": { "id": "1-3f546125-2ec2-4b14-87f6-54a14ae73e98", "is_guest": true }, "status": "payment_accepted" }