Executes the Update Discount Offered action for the Invoices data object.

Updates discount offered on a posted AP invoice line and propagates the change to eligible invoice line detail rows.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The code of the subscriber that you are making this request for.

Body Params

Updates discount offered on a posted AP invoice line and propagates the change to open invoice line detail rows. Optionally updates header discount date.

integer
required
1 to 255

AP company. Key to ap/invoices(APCo, Mth, APTrans).

date
required
^([0-9]{4})-(1[0-2]|0[1-9])-01$

Invoice batch month. Format YYYY-MM-01.

integer
required

Posted AP transaction ID.

integer
required

Invoice line to update. Key to ap/invoices LineItems(APLine).

date

Optional header discount date (bAPTH.DiscDate). Format YYYY-MM-DD. Omit to leave unchanged.

string
required
^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$

Discount offered amount for the invoice line (bAPTL.Discount). Connector must propagate to bAPTD.DiscOffer on eligible APTD rows.

__custom_fields
object

Custom field values when defined on APTH, APTL, or APTD.

Headers
string
required

Used to authorize access to the Direct API.

Responses

401

You have not provided a proper X-Application-Key in the header of this request.

403

The X-Application-Key provided is valid but the key does not have access to this resource.

404

The object with the given ID was not found OR a subscriber with the given URL was not found.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json