-
Notifications
You must be signed in to change notification settings - Fork 11
Customers open api #422
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
base: main
Are you sure you want to change the base?
Customers open api #422
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ delete: | |
| schema: | ||
| type: string | ||
| example: '5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba' | ||
| - name: applied_coupon_id | ||
| - name: id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| in: path | ||
| description: Unique identifier of the applied coupon, created by Lago. | ||
| required: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ post: | |
| summary: Generate a Customer Payment Provider Checkout URL | ||
| description: This endpoint regenerates the Payment Provider Checkout URL of a Customer. | ||
| parameters: | ||
| - name: external_customer_id | ||
| - name: customer_external_id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| in: path | ||
| description: The customer external unique identifier (provided by your own application). | ||
| required: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ get: | |
| summary: Retrieve customer current usage | ||
| description: This endpoint enables the retrieval of the usage-based billing data for a customer within the current period. | ||
| parameters: | ||
| - name: external_customer_id | ||
| - name: customer_external_id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| in: path | ||
| description: The customer external unique identifier (provided by your own application). | ||
| required: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ get: | |
| parameters: | ||
| - $ref: '../parameters/page.yaml' | ||
| - $ref: '../parameters/per_page.yaml' | ||
| - name: external_customer_id | ||
| - name: customer_external_id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| in: path | ||
| description: The customer external unique identifier (provided by your own application). | ||
| required: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ get: | |
|
|
||
| This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal | ||
| parameters: | ||
| - name: external_customer_id | ||
| - name: customer_external_id | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| in: path | ||
| description: External ID of the existing customer | ||
| required: true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,18 @@ allOf: | |
| - $ref: './CustomerObject.yaml' | ||
| - type: object | ||
| properties: | ||
| metadata: | ||
| type: array | ||
| items: | ||
| $ref: './CustomerMetadata.yaml' | ||
|
Comment on lines
-5
to
-8
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| taxes: | ||
| description: List of customer taxes | ||
| type: array | ||
| items: | ||
| $ref: './TaxObject.yaml' | ||
| vies_check: | ||
| type: object | ||
| properties: | ||
| valid: | ||
| type: boolean | ||
| description: "Whether the VIES check was successful" | ||
| example: true | ||
| applicable_invoice_custom_sections: | ||
| description: The customer’s invoice custom section used for generating invoices. | ||
| type: array | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/getlago/lago-api/blob/main/app/controllers/api/v1/customers_controller.rb#L70