Record Order Payment
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”.
POST
/
payments
/
orders
/
{orderId}
/
record-payment
Record Order Payment
curl --request POST \
--url https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"mode": "card",
"notes": "This was a direct payment",
"amount": 100,
"meta": {},
"isPartialPayment": true
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
mode: 'card',
notes: 'This was a direct payment',
amount: 100,
meta: {},
isPartialPayment: true
})
};
fetch('https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"mode": "card",
"notes": "This was a direct payment",
"amount": 100,
"meta": {},
"isPartialPayment": True
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Record Order Payment
curl --request POST \
--url https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"mode": "card",
"notes": "This was a direct payment",
"amount": 100,
"meta": {},
"isPartialPayment": true
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
altId: '6578278e879ad2646715ba9c',
altType: 'location',
mode: 'card',
notes: 'This was a direct payment',
amount: 100,
meta: {},
isPartialPayment: true
})
};
fetch('https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/orders/{orderId}/record-payment"
payload = {
"altId": "6578278e879ad2646715ba9c",
"altType": "location",
"mode": "card",
"notes": "This was a direct payment",
"amount": 100,
"meta": {},
"isPartialPayment": True
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}