customerPayment

POST {{url}}/{{environment}}/api/v2.0/companies({{companyId}})/customerPayments?tenant={{tenant}}

Request Params

KeyDatatypeRequiredDescription
tenantstring

Request Body

{"journalId"=>"{{customerPaymentJournalId}}", "journalDisplayName"=>"GENERAL", "lineNumber"=>10000, "customerId"=>"00000000-0000-0000-0000-000000000000", "customerNumber"=>"", "postingDate"=>"2015-12-31", "documentNumber"=>"G02001", "externalDocumentNumber"=>"", "amount"=>0, "appliesToInvoiceId"=>"00000000-0000-0000-0000-000000000000", "appliesToInvoiceNumber"=>"", "description"=>"Cash", "comment"=>""}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"@odata.context":"http://bcserver:7048/BC/api/v2.0/$metadata#companies(7d95c69c-82de-ed11-884e-6045bdac97e2)/customerPayments/$entity","@odata.etag":"W/\"JzE5OzUwMTc2MjUxNzcyNDA2NDk3NDAxOzAwOyc=\"","id":"af844d50-5b0b-ee11-b393-db339aee3495","journalId":"66223caa-82de-ed11-884e-6045bdac97e2","journalDisplayName":"GENERAL","lineNumber":10000,"customerId":"00000000-0000-0000-0000-000000000000","customerNumber":"","postingDate":"2023-06-15","documentNumber":"G02001","externalDocumentNumber":"","amount":0,"appliesToInvoiceId":"00000000-0000-0000-0000-000000000000","appliesToInvoiceNumber":"","description":"Cash","comment":"","lastModifiedDateTime":"2023-06-15T09:02:12.237Z"}