paymentMethod

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

Request Params

KeyDatatypeRequiredDescription
tenantstring

Request Body

{"id"=>"{{$guid}}", "code"=>"ACCOUNT", "displayName"=>"Payment on account"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"@odata.context":"http://bcserver:7048/BC/api/v2.0/$metadata#companies(a19eca60-4a86-ed11-aad5-000d3a38ed32)/paymentMethods/$entity","@odata.etag":"W/\"JzIwOzE0NTM3NTc3MjQyNDk4NDc0NTI1MTswMDsn\"","id":"ad01d8bf-4188-ed11-af3b-cd647ce09ede","code":"ACCOUNT","displayName":"Payment on account","lastModifiedDateTime":"2022-12-30T12:59:10.12Z"}