SpringImport\Swagger\Magento2\Client\SalesRefundInvoiceV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
salesRefundInvoiceV1ExecutePostPOST /V1/invoice/{invoiceId}/refund

salesRefundInvoiceV1ExecutePost

int salesRefundInvoiceV1ExecutePost(invoiceId,invoiceId, body)

Create refund for invoice

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\SalesRefundInvoiceV1Api();
$invoiceId = 56; // int | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body77(); // \SpringImport\Swagger\Magento2\Client\Model\Body77 | 

try {
    $result = $api_instance->salesRefundInvoiceV1ExecutePost($invoiceId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SalesRefundInvoiceV1Api->salesRefundInvoiceV1ExecutePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
invoiceIdint
body\SpringImport\Swagger\Magento2\Client\Model\Body77[optional]

Return type

int

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]