Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.27 KB

ReceiptsApi.md

File metadata and controls

56 lines (35 loc) · 1.27 KB

Flipdish.ReceiptsApi

All URIs are relative to https://api.flipdish.co

Method HTTP request Description
getReceipt GET /api/v1.0/receipts/{orderId}

getReceipt

GetReceiptByOrderIdQueryResponse getReceipt(orderId)

Example

import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new Flipdish.ReceiptsApi();
let orderId = 56; // Number | 
apiInstance.getReceipt(orderId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
orderId Number

Return type

GetReceiptByOrderIdQueryResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml