Skip to content

Commit

Permalink
Update README to reflect CheckoutApiException changes
Browse files Browse the repository at this point in the history
Update README to reflect changes in f732741
  • Loading branch information
delenamalan authored and a-ibarra committed Sep 29, 2022
1 parent 5549db1 commit b778a30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,13 @@ def oauth():
## Exception handling

All the API responses that do not fall in the 2** status codes will cause a `CheckoutApiException`. The exception encapsulates
the `request_id`, `http_status_code` and a dictionary of `error_details`, if available.
the `http_metadata` and a dictionary of `error_details`, if available.

```python
try:
checkout_api.customers.get("customer_id")
except CheckoutApiException as err:
request_id = err.request_id
http_status_code = err.http_status_code
http_status_code = err.http_metadata.status_code
error_details = err.error_details
```

Expand Down Expand Up @@ -207,4 +206,4 @@ Please refer to [Code of Conduct](CODE_OF_CONDUCT.md)

## Licensing

[MIT](LICENSE.md)
[MIT](LICENSE.md)

0 comments on commit b778a30

Please sign in to comment.