Skip to content

Commit 4a65fb4

Browse files
committed
Fix Invoice charge endpoint
1 parent aea78be commit 4a65fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

threescale_api/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ def state_update(self, entity_id: int, state: InvoiceState, **kwargs):
843843
def charge(self, entity_id: int):
844844
"""Charge an Invoice."""
845845
log.info(f"[Invoice] charge invoice ({entity_id})")
846-
url = self._entity_url(entity_id) + '/state'
846+
url = self._entity_url(entity_id) + '/charge'
847847
response = self.rest.post(url)
848848
instance = self._create_instance(response=response)
849849
return instance

0 commit comments

Comments
 (0)