Skip to content

Post Payment

Post a payment to an order or invoice in Prophet 21.

postPayment

financial

ParameterTypeRequiredDefaultDescription
Order NumberstringYes-Order number to post payment against
AmountnumberYes-Payment amount (must be greater than zero)
Payment MethodoptionsYescheckMethod of payment
Reference NumberstringNo-Check number, transaction ID, or other reference
Payment PathstringNo/api/v2/transactionEndpoint path for posting payment
Include Raw ResponsesbooleanNotrueAttach raw response alongside normalized output
ValueLabel
checkCheck
credit_cardCredit Card
achACH
wireWire Transfer
cashCash
{
"data": {
"order_no": "12345",
"amount": 150.00,
"payment_method": "credit_card",
"reference_no": "TXN-789",
"posted": true
},
"raw": {
"payment": {}
}
}
{
"data": {
"order_no": "12345",
"posted": false,
"errors": []
},
"raw": {
"payment": {}
}
}
  • Order Number Required: Order number must be provided
  • Invalid Amount: Amount must be greater than zero
  • Payment Failed: Returns posted: false with error messages