Change Order
Intent
Applies the supplied changes to the order.
When to call it
Call this when the order already exists and its stored values need to change.
Access boundary
Authorize the request with a token that carries customer_portal:write.
Successful result
A successful request returns 200. The response schema below defines the body your integration receives.
Authorizations
Authentication: Customer session tokens authenticate buyers within your organization. Generate one through the customer session operation.
Path Parameters
Identifier of the order.
Body
Response
Request completed successfully
The stable identifier for this record.
The time Ruba created this record.
The time this record last changed.
draft, pending, paid, refunded, partially_refunded, void "paid"
Indicates whether the order has been paid for.
true
Subtotal Amount: Amount in cents, before discounts and taxes.
10000
Discount Amount: Discount amount in cents.
1000
Net Amount: Amount in cents, after discounts but before taxes.
9000
Tax Amount: Sales tax amount in cents.
720
Total Amount: Amount in cents, after discounts and taxes.
9720
Applied Balance Amount: Customer's balance amount applied to this invoice. Can increase the total amount paid, if the customer has a negative balance, or decrease it, if the customer has a positive balance.Amount in cents.
0
Due Amount: Amount in cents that is due for this order.
0
Refunded Amount: Amount refunded in cents.
0
Refunded Tax Amount: Sales tax refunded in cents.
0
"usd"
purchase, subscription_create, subscription_cycle, subscription_update Billing Name: Name of the customer that should appear on the invoice.
Invoice Number: Invoice number associated with this order. null while the order is in draft status; assigned at finalize.
Indicates whether an invoice has been generated for this order.
Receipt Number: Receipt number for this order. Set once the order is paid for organizations with receipts enabled. When set, a downloadable receipt PDF can be obtained via the receipt endpoint.
Items: Line items composing the order.
Object representing summary description of the order.
"Pro Plan"
Refundable Amount: Amount in cents that can still be refunded (net, before taxes). Accounts for any applied customer balance and previous refunds.
9000
Refundable Tax Amount: Sales tax in cents that would be refunded if the full refundable amount is refunded.
720
Count of seats purchased (for seat-based one-time orders).
Next Payment Attempt At: When the next automatic payment retry is scheduled. null if the order is not in dunning or all retries have been exhausted.