All URIs are relative to https://walletpass.jp/api/v1
| Method | HTTP request | Description |
|---|---|---|
| createPass | POST /templates/{template}/passes | Create pass |
| updatePass | PATCH /passes/{pass} | Update pass |
| deletePass | DELETE /passes/{pass} | Delete pass |
| getPassByID | GET /passes/{pass} | Get pass |
| getPassApple | GET /passes/{pass}/pkpass | Get pass in pkpass format |
| getPassByExtID | GET /passes/external/{externalID} | Get pass by external ID |
| getPassGoogle | GET /passes/{pass}/gpay | Get pass Google Play installation link |
| getPassLink | GET /passes/{pass}/link | Get pass download link |
| listTemplatePasses | GET /templates/{template}/passes | Get all template passes |
| redeemPass | PATCH /passes/{pass}/redeem | Redeem pass |
| punchPass | PATCH /passes/{pass}/punch | Punch pass |
\WalletPassJP\Model\ResourceResponse createPass($template_id, $body)
Create pass
Create Pass record for the specified Template.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$template_id = 'template_example'; // Template ID
$body = new \WalletPassJP\Model\PassRequest(); // \WalletPassJP\Model\PassRequest |
try {
$result = $apiInstance->create($template_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->createPass: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| template | string | Template ID | |
| body | \WalletPassJP\Model\PassRequest | [optional] |
\WalletPassJP\Model\ResourceResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\WalletPassJP\Model\ResourceResponse getPassByID($pass)
Get pass
Get Pass record.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$result = $apiInstance->show($pass_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->getPassByID: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
\WalletPassJP\Model\ResourceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\WalletPassJP\Model\ResourceResponse getPassByExtID($external_id)
Get pass by external ID
Get Pass record by external ID.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$external_id = 'external_id_example'; // string | The custom or external ID
try {
$result = $apiInstance->getPassByExtID($external_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->getPassByExtID: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| external_id | string | The custom or external ID |
\WalletPassJP\Model\ResourceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deletePass($pass)
Delete pass
Delete Pass record.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$apiInstance->delete($pass_id);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->deletePass: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string getPassApple($pass)
Get pass in pkpass format
Download pkpass file.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$result = $apiInstance->getPassApple($pass_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->getPassApple: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
string
- Content-Type: Not defined
- Accept: application/vnd.apple.pkpass, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\WalletPassJP\Model\Pass getPassGoogle($pass)
Get pass Google Play installation link
Get Google Play link.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$result = $apiInstance->getPassGoogle($pass_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->getPassGoogle: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string getPassLink($pass)
Get pass download link
Get Pass distribution page link.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$result = $apiInstance->getPassLink($pass_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->getPassLink: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\WalletPassJP\Model\CollectionResponse listTemplatePasses($template, $limit, $page)
Get all template passes
Get all Passes for the specified Template.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$template_id = ''; // Template ID
$limit = 15; // int | Records imit
$page = 1; // int | Page number
try {
$result = $apiInstance->listTemplatePasses($template_id, $limit, $page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->listTemplatePasses: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| template | string | Template ID | |
| limit | int | Records imit | [optional] [default to 15] |
| page | int | Page number | [optional] [default to 1] |
\WalletPassJP\Model\CollectionResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updatePass($pass)
Update pass
Update Pass record.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
$body = []; //pass request
try {
$apiInstance->update($pass_id, $body);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->updatePass: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redeemPass($pass)
Redeem Pass.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$apiInstance->redeem($pass_id);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->redeemPass: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
punchPass($pass)
Punch Pass.
<?php
require_once __DIR__ . '/vendor/autoload.php';
// Configure HTTP bearer authorization: Bearer
$key = 'YOUR_ACCESS_TOKEN';
$apiInstance = new WalletPassJP\Api\PassesApi($key);
$pass_id = 'pass_example'; // string | Pass ID
try {
$apiInstance->punch($pass_id);
} catch (Exception $e) {
echo 'Exception when calling PassesApi->punchPass: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| pass | string | Pass ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]