Link a ticket to a payout

.md

Link one of the trader's tickets to a payout, or unlink it.

Scopesadmin:write
Permissionmanage_payoutsview_tickets|manage_tickets
PUT/v1/admin/payouts/{payout}/ticket

Link a ticket the trader already has to the payout, so whoever reviews it reads the conversation in the tab Ticket. Only a ticket of the same trader: another trader's conversation would say something about this one that is not true. A null unlinks.

The trader's tickets are listed here.

Needs a firm. Our own staff name one with the Propper-Workspace header.

Request

FieldDescription
ticket_idThe ticket's id, or null to unlink. Required
curl -X PUT "https://api.proppertrading.com/v1/admin/payouts/po_pk2jjt25cw5swbwv/ticket" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme" \
  -H "Content-Type: application/json" \
  -d '{"ticket_id": "tkt_6ssjvhjwbbdd4hpw"}'

Response

The tab Ticket, as it is now.

Errors

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
401invalid_tokenNot a token, or the secret does not match
401revoked_tokenSigned out here or from another device
401expired_tokenNinety days without use, or a set expiry passed
403admin_access_requiredThis account no longer helps run the environment
403insufficient_scopeThis device does not hold admin:write
403workspace_not_permittedThe Propper-Workspace header names an environment this account cannot act in
403forbiddenWithout manage_payouts, and view_tickets or manage_tickets
404resource_not_foundNo payout with that id in this firm
422validation_failedNo ticket_id, or not a ticket of this firm
422ticket_not_tradersThe ticket is another trader's