All URIs are relative to https://openapi.etsy.com
Method | HTTP request | Description |
---|---|---|
createReceiptShipment | POST /v3/application/shops/{shop_id}/receipts/{receipt_id}/tracking | |
getShopReceipt | GET /v3/application/shops/{shop_id}/receipts/{receipt_id} | |
getShopReceipts | GET /v3/application/shops/{shop_id}/receipts | |
updateShopReceipt | PUT /v3/application/shops/{shop_id}/receipts/{receipt_id} |
\Swagger\Client\Model\ShopReceipt createReceiptShipment($shop_id, $receipt_id, $tracking_code, $carrier_name, $send_bcc, $note_to_buyer)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopReceiptApi(
// 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(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$receipt_id = 56; // int | The receipt to submit tracking for.
$tracking_code = "tracking_code_example"; // string |
$carrier_name = "carrier_name_example"; // string |
$send_bcc = true; // bool |
$note_to_buyer = "note_to_buyer_example"; // string |
try {
$result = $apiInstance->createReceiptShipment($shop_id, $receipt_id, $tracking_code, $carrier_name, $send_bcc, $note_to_buyer);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopReceiptApi->createReceiptShipment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
receipt_id | int | The receipt to submit tracking for. | |
tracking_code | string | [optional] | |
carrier_name | string | [optional] | |
send_bcc | bool | [optional] | |
note_to_buyer | string | [optional] |
\Swagger\Client\Model\ShopReceipt
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopReceipt getShopReceipt($shop_id, $receipt_id)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopReceiptApi(
// 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(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$receipt_id = 56; // int | The numeric ID for the [receipt](/documentation/reference#tag/Shop-Receipt) associated to this transaction.
try {
$result = $apiInstance->getShopReceipt($shop_id, $receipt_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopReceiptApi->getShopReceipt: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
receipt_id | int | The numeric ID for the receipt associated to this transaction. |
\Swagger\Client\Model\ShopReceipt
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopReceipts getShopReceipts($shop_id, $min_created, $max_created, $min_last_modified, $max_last_modified, $limit, $offset, $sort_on, $sort_order, $was_paid, $was_shipped, $was_delivered)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopReceiptApi(
// 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(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$min_created = 56; // int | The earliest unix timestamp for when a record was created.
$max_created = 56; // int | The latest unix timestamp for when a record was created.
$min_last_modified = 56; // int | The earliest unix timestamp for when a record last changed.
$max_last_modified = 56; // int | The latest unix timestamp for when a record last changed.
$limit = 25; // int | The maximum number of results to return.
$offset = 0; // int | The number of records to skip before selecting the first result.
$sort_on = "created"; // string | The value to sort a search result of listings on.
$sort_order = "desc"; // string | The ascending(up) or descending(down) order to sort receipts by.
$was_paid = true; // bool | When `true`, returns receipts where the seller has recieved payment for the receipt. When `false`, returns receipts where payment has not been received.
$was_shipped = true; // bool | When `true`, returns receipts where the seller shipped the product(s) in this receipt. When `false`, returns receipts where shipment has not been set.
$was_delivered = true; // bool | When `true`, returns receipts that have been marked as delivered. When `false`, returns receipts where shipment has not been marked as delivered.
try {
$result = $apiInstance->getShopReceipts($shop_id, $min_created, $max_created, $min_last_modified, $max_last_modified, $limit, $offset, $sort_on, $sort_order, $was_paid, $was_shipped, $was_delivered);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopReceiptApi->getShopReceipts: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
min_created | int | The earliest unix timestamp for when a record was created. | [optional] |
max_created | int | The latest unix timestamp for when a record was created. | [optional] |
min_last_modified | int | The earliest unix timestamp for when a record last changed. | [optional] |
max_last_modified | int | The latest unix timestamp for when a record last changed. | [optional] |
limit | int | The maximum number of results to return. | [optional] [default to 25] |
offset | int | The number of records to skip before selecting the first result. | [optional] [default to 0] |
sort_on | string | The value to sort a search result of listings on. | [optional] [default to created] |
sort_order | string | The ascending(up) or descending(down) order to sort receipts by. | [optional] [default to desc] |
was_paid | bool | When `true`, returns receipts where the seller has recieved payment for the receipt. When `false`, returns receipts where payment has not been received. | [optional] |
was_shipped | bool | When `true`, returns receipts where the seller shipped the product(s) in this receipt. When `false`, returns receipts where shipment has not been set. | [optional] |
was_delivered | bool | When `true`, returns receipts that have been marked as delivered. When `false`, returns receipts where shipment has not been marked as delivered. | [optional] |
\Swagger\Client\Model\ShopReceipts
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ShopReceipt updateShopReceipt($shop_id, $receipt_id, $was_shipped, $was_paid)
This endpoint is ready for production use.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer');
// Configure OAuth2 access token for authorization: oauth2
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Swagger\Client\Api\ShopReceiptApi(
// 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(),
$config
);
$shop_id = 56; // int | The unique positive non-zero numeric ID for an Etsy Shop.
$receipt_id = 56; // int | The numeric ID for the [receipt](/documentation/reference#tag/Shop-Receipt) associated to this transaction.
$was_shipped = true; // bool |
$was_paid = true; // bool |
try {
$result = $apiInstance->updateShopReceipt($shop_id, $receipt_id, $was_shipped, $was_paid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ShopReceiptApi->updateShopReceipt: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
shop_id | int | The unique positive non-zero numeric ID for an Etsy Shop. | |
receipt_id | int | The numeric ID for the receipt associated to this transaction. | |
was_shipped | bool | [optional] | |
was_paid | bool | [optional] |
\Swagger\Client\Model\ShopReceipt
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]