All URIs are relative to http://localhost/rest/default
Method | HTTP request | Description |
---|---|---|
sales_creditmemo_management_v1_cancel_put | PUT /V1/creditmemo/{id} | |
sales_creditmemo_management_v1_get_comments_list_get | GET /V1/creditmemo/{id}/comments | |
sales_creditmemo_management_v1_notify_post | POST /V1/creditmemo/{id}/emails | |
sales_creditmemo_management_v1_refund_post | POST /V1/creditmemo/refund |
bool sales_creditmemo_management_v1_cancel_put(id)
Cancels a specified credit memo.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SalesCreditmemoManagementV1Api()
id = 56 # int | The credit memo ID.
try:
api_response = api_instance.sales_creditmemo_management_v1_cancel_put(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SalesCreditmemoManagementV1Api->sales_creditmemo_management_v1_cancel_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The credit memo ID. |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SalesDataCreditmemoCommentSearchResultInterface sales_creditmemo_management_v1_get_comments_list_get(id)
Lists comments for a specified credit memo.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SalesCreditmemoManagementV1Api()
id = 56 # int | The credit memo ID.
try:
api_response = api_instance.sales_creditmemo_management_v1_get_comments_list_get(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SalesCreditmemoManagementV1Api->sales_creditmemo_management_v1_get_comments_list_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The credit memo ID. |
SalesDataCreditmemoCommentSearchResultInterface
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool sales_creditmemo_management_v1_notify_post(id)
Emails a user a specified credit memo.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SalesCreditmemoManagementV1Api()
id = 56 # int | The credit memo ID.
try:
api_response = api_instance.sales_creditmemo_management_v1_notify_post(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SalesCreditmemoManagementV1Api->sales_creditmemo_management_v1_notify_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The credit memo ID. |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SalesDataCreditmemoInterface sales_creditmemo_management_v1_refund_post(body=body)
Prepare creditmemo to refund and save it.
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.SalesCreditmemoManagementV1Api()
body = swagger_client.Body95() # Body95 | (optional)
try:
api_response = api_instance.sales_creditmemo_management_v1_refund_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SalesCreditmemoManagementV1Api->sales_creditmemo_management_v1_refund_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Body95 | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]