Skip to main content
The “Record Order Payment” API allows to record a payment for an order. Use this endpoint to record payment for an order and update the order status to “Paid”.

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Path parameters

string
default:"5e2d4c8e0e8b4e001c1c4f5d"
required
Order ID

Body

string
default:"6578278e879ad2646715ba9c"
required
account Id / company Id based on altType
string
default:"account"
required
Alt Type Posibles valores: ‘account’
string
default:"card"
required
manual payment method Posibles valores: ‘cash’, ‘card’, ‘cheque’, ‘bank_transfer’, ‘other’
object
Details of Card if used for payment
object
Details of the Cheque if used for payment
string
default:"This was a direct payment"
Any note to be recorded with the transaction
number
default:"100"
Amount to be paid against the invoice.
object
Meta data to be recorded with the transaction
boolean
Indicates if the order is intended to be a partial payment.

Respuestas

boolean
default:"True"
required
Success status of the request

Ejemplo