Schedule the update of an existing line item
PUT
/accounts/{account_id}/line_items/{line_item_id}/schedule
Path parameters
-
account_id string Required
ID of the Account
-
line_item_id string Required
Line Item ID
Body
Schedule the update of a specific line item.
-
line_item_status string
The new status which you would like to set for the line item
Values are
VALID
,INVALID
,OFFSET
,PENDING
,AUTHORIZED
,DECLINED
,VOID
, orPOSTED
. Default value isVALID
. -
original_amount_cents integer
The updated amount (in cents).
-
effective_at string(date-time)
The
Date-Time
that the update is made applicable to the line item.
PUT /accounts/{account_id}/line_items/{line_item_id}/schedule
curl \
-X PUT https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/line_items/can_52322/schedule \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"line_item_status":"VALID","original_amount_cents":200,"effective_at":"2020-07-20T09:11:28+00:00"}'
Request example
{
"line_item_status": "VALID",
"original_amount_cents": 200,
"effective_at": "2020-07-20T09:11:28+00:00"
}