Payment Profiles
Operations Summary
| Method |
Endpoint |
Description |
| Core CRUD |
|
|
| GET |
/api/payment-profiles/ |
List Payment Profiles |
| GET |
/api/payment-profiles/{uuid}/ |
Retrieve |
| POST |
/api/payment-profiles/ |
Create |
| PUT |
/api/payment-profiles/{uuid}/ |
Update |
| PATCH |
/api/payment-profiles/{uuid}/ |
Partial Update |
| DELETE |
/api/payment-profiles/{uuid}/ |
Delete |
| Other Actions |
|
|
| POST |
/api/payment-profiles/{uuid}/enable/ |
Enable |
Core CRUD
List Payment Profiles
Retrieve
Create
Update
| http \
PUT \
https://api.example.com/api/payment-profiles/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-payment-profile" \
organization="https://api.example.com/api/organization/a1b2c3d4-e5f6-7890-abcd-ef1234567890/" \
payment_type="fixed_price"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.payment_profile_request import PaymentProfileRequest # (1)
from waldur_api_client.api.payment_profiles import payment_profiles_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = PaymentProfileRequest(
name="my-awesome-payment-profile",
organization="https://api.example.com/api/organization/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
payment_type="fixed_price"
)
response = payment_profiles_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
PaymentProfileRequest
- API Source:
payment_profiles_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { paymentProfilesUpdate } from 'waldur-js-client';
try {
const response = await paymentProfilesUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-payment-profile",
"organization": "https://api.example.com/api/organization/a1b2c3d4-e5f6-7890-abcd-ef1234567890/",
"payment_type": "fixed_price"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
name |
string |
✓ |
organization |
string (uri) |
✓ |
attributes |
object |
|
attributes.end_date |
string |
|
attributes.agreement_number |
string |
|
attributes.contract_sum |
integer |
|
payment_type |
string |
✓ |
is_active |
boolean |
|
200 -
| Field |
Type |
uuid |
string (uuid) |
url |
string (uri) |
name |
string |
organization_uuid |
string (uuid) |
organization |
string (uri) |
attributes |
object |
attributes.end_date |
string |
attributes.agreement_number |
string |
attributes.contract_sum |
integer |
payment_type |
string |
payment_type_display |
string |
is_active |
boolean |
Partial Update
Delete
Other Actions
Enable