forked from ringcentral/slate
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add payment terms endpoint documentation
#15
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
Merged
gustav
merged 3 commits into
main
from
maher/gig-4891-add-info-about-payment-terms-status
Jun 11, 2025
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| # Payment Terms | ||
|
|
||
| This endpoint allows you to retrieve the payment terms associated with your integration. The response includes information about security deposits for each currency. For integrations with a security deposit at Gigapay, the endpoint displays the total deposit amount (`credit_limit`) and how much of that deposit has been utilized (`credit_used`), broken down by currency. | ||
|
|
||
| ### The Payment Terms object | ||
|
|
||
| > An example Payment Terms object: | ||
|
|
||
| ```json | ||
| { | ||
| [ | ||
| { | ||
| "credit_terms": [ | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 0.00, | ||
| "currency": "SEK" | ||
| }, | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 0.00, | ||
| "currency": "NOK" | ||
| }, | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 0.00, | ||
| "currency": "EUR" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| | Attribute | Description | | ||
| | ------------ | ----------------------------------------------------------------------- | | ||
| | `credit_terms` | A list of credit term objects. | | ||
| | `credit_limit` | The maximum credit amount available in the specified currency. | | ||
| | `credit_used` | The amount of credit currently being used in the specified currency. | | ||
gustav marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `currency` | The currency code for the credit terms (e.g., SEK, NOK, EUR). | | ||
|
|
||
| ## List Payment Terms | ||
|
|
||
| ```python | ||
| import requests | ||
|
|
||
| response = requests.get( | ||
| 'https://api.gigapay.se/v2/payment_terms/', | ||
| headers={ | ||
| 'Authorization': 'Token cd7a4537a231356d404b553f465b6af2fa035821', | ||
| 'Integration-ID': '79606358-97af-4196-b64c-5f719433d56b' | ||
| } | ||
| ) | ||
| ``` | ||
|
|
||
| ```shell | ||
| curl -X GET -H 'Authorization: Token cd7a4537a231356d404b553f465b6af2fa035821' -H 'Integration-ID: 79606358-97af-4196-b64c-5f719433d56b' https://api.gigapay.se/v2/payment_terms/ | ||
| ``` | ||
|
|
||
| ```javascript | ||
| fetch("https://api.gigapay.se/v2/payment_terms/", { | ||
| headers: { | ||
| Authorization: "Token cd7a4537a231356d404b553f465b6af2fa035821", | ||
| "Integration-Id": "79606358-97af-4196-b64c-5f719433d56b", | ||
| }, | ||
| }); | ||
| ``` | ||
|
|
||
| > The above command returns JSON structured like this: | ||
|
|
||
| ```json | ||
| [ | ||
| { | ||
| "credit_terms": [ | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 0.00, | ||
| "currency": "SEK" | ||
| }, | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 0.00, | ||
| "currency": "NOK" | ||
| }, | ||
| { | ||
| "credit_limit": "70.00", | ||
| "credit_used": 10.00, | ||
| "currency": "EUR" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| ``` | ||
|
|
||
| This endpoint retrieves Payment Terms for an integration. | ||
|
|
||
| ### HTTP Request | ||
|
|
||
| `GET https://api.gigapay.se/v2/payment_terms/` | ||
|
|
||
| ### Headers | ||
|
|
||
| | Parameter | Required | Description | | ||
| | ---------------- | -------- | ------------------------- | | ||
| | `Authorization` | True | Your Authorization Token. | | ||
| | `Integration-ID` | True | Integration id. | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ includes: | |
| - payouts | ||
| - pricing | ||
| - invoices | ||
| - payment_terms | ||
| - webhooks | ||
|
|
||
| search: true | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.