Skip to main content
POST
/
bookings
/
{code}
/
pay
⚠️ Initiate payment.
curl --request POST \
  --url https://b2b-api.markoub.dev/bookings/{code}/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "cmi"
}
'
"<string>"
⚠️ This endpoint is not needed, if you handle payments yourself.

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

code
string
required

The unique identifier of the booking.

Required string length: 1 - 255

Body

application/json
method
enum<string>
default:cmi
Available options:
cmi,
fatourati

Response

Depending on the payment method, either a payment code or a URL redirection is returned.

The response is of type string.