Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.95 KB

ExternalPurchaseApi.md

File metadata and controls

57 lines (40 loc) · 1.95 KB

Membercare\Client\ExternalPurchaseApi

All URIs are relative to /

Method HTTP request Description
postExternalOrderApi POST /api/v1/externalPurchase Inserts an external purchased order with payment if given.

postExternalOrderApi

\Membercare\Client\Model\Invoice postExternalOrderApi($token, $body)

Inserts an external purchased order with payment if given.

Example

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

$apiInstance = new Membercare\Client\Api\ExternalPurchaseApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$token = "token_example"; // string | access token
$body = new \Membercare\Client\Model\ExternalPurchase(); // \Membercare\Client\Model\ExternalPurchase | An ExternalPurchase object.

try {
    $result = $apiInstance->postExternalOrderApi($token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExternalPurchaseApi->postExternalOrderApi: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
token string access token
body \Membercare\Client\Model\ExternalPurchase An ExternalPurchase object. [optional]

Return type

\Membercare\Client\Model\Invoice

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, text/json, application/_*+json
  • Accept: text/plain, application/json, text/json

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