Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: dupliate field provider_payment_methods , cant parse properly #442

Open
philipp1992 opened this issue Jan 1, 2025 · 0 comments
Open

Comments

@philipp1992
Copy link

latest version, trying to parse the response with rusts serde crate, getting the error duplicate field

curl --location --request GET "$LAGO_URL/api/v1/customers/sub123" --header "Authorization: Bearer $API_KEY"

{"customer":{"lago_id":"4c47c363-500e-4704-85d4-735ff3f7e84a","external_id":"sub123","name":null,"firstname":"John","lastname":"Doe","customer_type":null,"sequential_id":12,"slug":"DAT-8F9C-012","created_at":"2025-01-01T21:36:07Z","updated_at":"2025-01-01T21:36:07Z","country":"US","address_line1":"123 Main St","address_line2":null,"state":null,"zipcode":"12345","email":"[email protected]","city":"New York","url":null,"phone":null,"logo_url":null,"legal_name":null,"legal_number":null,"currency":"EUR","tax_identification_number":null,"timezone":null,"applicable_timezone":"UTC","net_payment_term":null,"external_salesforce_id":null,"finalize_zero_amount_invoice":"inherit","billing_configuration":{"invoice_grace_period":null,"payment_provider":"stripe","payment_provider_code":"1","document_locale":null,"provider_customer_id":"cus_RValmji9iEiN8E","provider_payment_methods":["card"],"sync_with_provider":true,"provider_payment_methods":["card"]},"shipping_address":{"address_line1":null,"address_line2":null,"city":null,"zipcode":null,"state":null,"country":null},"metadata":[],"taxes":[],"integration_customers":[]}}%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant