Remove a payment from an invoice
Remove a payment from an invoice without touching the money.
status and amounts follow the payments that remain. See Remove a payment.Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Path Parameters
Invoice id with the inv_ prefix.
Payment id with the inv_tr_link_ prefix, from the invoice's payments.
Response
The invoice without the payment.
A request for payment you send a customer. Slash emails it, hosts a payment page at payUrl, matches incoming deposits to it and keeps its status and amounts up to date. All amounts are in USD.
Invoice id with the inv_ prefix.
"inv_2rj4l7hmrrrcv"
Unique per legal entity.
"INV-1042"
See Invoice lifecycle.
scheduled, unpaid, partially_paid, paid, void Whether the invoice is unpaid or partially_paid and its due date has passed in its timezone.
The account payments settle into, with the sa_group_ prefix.
"sa_group_2rj4l7hmrrrcv"
The IANA timezone the invoice's dates are in.
"America/New_York"
Also copied on the invoice and its reminders.
The customer's details as they were when the invoice was created.
Oldest first.
The hosted page where the customer views and pays the invoice.
The invoice's PDF, with the st_ prefix. Download it with GET /v2/documents/{documentId}. Each edit issues a new PDF.
"st_2rj4l7hmrrrcv"
Customer id with the le_cus_ prefix.
"le_cus_2rj4l7hmrrrcv"
The virtual account payments settle into, with the subaccount_ prefix. Absent when they settle into the account's primary virtual account.
The recurring series that issued the invoice, with the inv_series_ prefix.
When a scheduled invoice will be emailed, at 9:00 in its timezone.
Taken off the line items' subtotal before tax.
- Percentage
- Fixed
Tax as a percent of the subtotal after the discount. 8.5 means 8.5%.
8.5
A note printed on the invoice.
When the next automatic reminder is due to go out.
When the invoice became paid.
When the invoice was voided.