curl --request POST \
--url http://localhost:3091/v1/api/disputes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bookingId": 123,
"reason": "<string>",
"description": "<string>"
}
'{
"id": 123,
"bookingId": 123,
"openedById": 123,
"reason": "<string>",
"description": "<string>",
"status": "<string>",
"refundAmount": 123,
"adminNotes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedById": 123
}Opens a new dispute on a booking with a reason and description
curl --request POST \
--url http://localhost:3091/v1/api/disputes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bookingId": 123,
"reason": "<string>",
"description": "<string>"
}
'{
"id": 123,
"bookingId": 123,
"openedById": 123,
"reason": "<string>",
"description": "<string>",
"status": "<string>",
"refundAmount": 123,
"adminNotes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolvedById": 123
}JWT access token from POST /v1/api/auth/login