Add payment

Add a payment (or refund) to a reservation

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Records a payment (or refund) on a reservation. The received amount on the reservation is recalculated after the payment is saved.

The payment is always saved on the account from the user_guid header. A user_id sent in the body is ignored.

Send "return_id": "Y" to get the new payment ID back, then use it with Issue invoice for payment to create the invoice for this payment.

🚧

Send all values

Fields you do not send are saved as 0 or N. exchange and direction default to 1. Always send paid.

Example request body

{
  "rent_id": "123456",
  "price": 250.00,
  "payment_method_id": "3",
  "currency_id": "2",
  "exchange": 1,
  "direction": 1,
  "paid": "Y",
  "price_with_tax": "Y",
  "payment_date": "2026-05-20",
  "erp_id": "PAY-98765",
  "return_id": "Y"
}

Responses

CodeMeaning
200Payment saved. "ok", or { "status": "ok", "payment_id": "..." } when return_id is Y.
400Missing rent_id or price, or worker_id does not belong to your account.
401Missing or wrong b2b_guid / user_guid headers.
403sorry: the reservation does not belong to the account in the headers.
Path Params
int32
required

Your MyRent account ID. Must be in the URL, but it is not used: the payment is always saved on the account from the user_guid header.

Body Params
int32
required

Reservation ID from MyRent.

double
required

Amount paid.

int32

Payment method ID from MyRent.

int32
Defaults to 2

Currency ID from MyRent (2 is EUR).

double
Defaults to 1

Exchange rate to the local currency. Use 1 for the local currency.

int32
Defaults to 1

1 payment from the guest, -1 refund or payout.

string
Defaults to Y

Y the money has been received, N not yet.

string
Defaults to Y

Y the amount includes tax.

string

Payment date, yyyy-MM-dd.

string

Payment note.

string

Payment subject.

string

Your own payment ID (external ID).

int32

MyRent worker who recorded the payment. Must belong to your account.

string
Defaults to N

New. Y returns a JSON object with the new payment_id. Without it the response is "ok".

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json