Skip to main content
POST
/
tickets
/
{id}
/
payments
Pay expenses from a ticket
curl --request POST \
  --url https://api.market.iventou.com.br/tickets/{id}/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expenses": [
    "9322c384-fd8i-4a13-80cd-1cbd1ef95ba0",
    "986dcaf6-c1eh-4218-b6b4-e4fd95a3c38j"
  ]
}
'

Authorizations

Authorization
string
header
required

Token from partner authetnication

Path Parameters

id
string
required

Body

application/json
expenses
any[][]
required
Minimum length: 1
Example:
[
"9322c384-fd8i-4a13-80cd-1cbd1ef95ba0",
"986dcaf6-c1eh-4218-b6b4-e4fd95a3c38j"
]

Response

204

Expenses paid from a ticket successfully