Download the PHP package liveecommerce/mundiapi without Composer
On this page you can find all versions of the php package liveecommerce/mundiapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liveecommerce/mundiapi
More information about liveecommerce/mundiapi
Files in liveecommerce/mundiapi
Package mundiapi
Short Description Mundipagg API
License MIT
Homepage https://apimatic.io
Informations about the package mundiapi
FORK DA MUNDIPAGG API, POIS O ESTAGIÁRIO DEIXOU PRIVADO O REPOSITÓRIO DA EMPRESA
Getting started
Mundipagg API
How to Build
The generated code has dependencies over external libraries like UniRest. These dependencies are defined in the file that comes with the SDK. To resolve these dependencies, we use the Composer package manager which requires PHP greater than 5.3.2 installed in your system. Visit https://getcomposer.org/download/ to download the installer file for Composer and run it in your system. Open command prompt and type . This should display the current version of the Composer installed if the installation was successful.
- Using command line, navigate to the directory containing the generated files (including ) for the SDK.
- Run the command . This should install all the required dependencies and create the directory in your project directory.
[For Windows Users Only] Configuring CURL Certificate Path in php.ini
CURL used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it will reject all SSL certificates as unverifiable. You will have to get your CA's cert and point curl at it. The steps are as follows:
- Download the certificate bundle (.pem file) from https://curl.haxx.se/docs/caextract.html on to your system.
- Add curl.cainfo = "PATH_TO/cacert.pem" to your php.ini file located in your php installation. “PATH_TO” must be an absolute path containing the .pem file.
How to Use
The following section explains how to use the MundiAPI library in a new project.
1. Open Project in an IDE
Open an IDE for PHP like PhpStorm. The basic workflow presented here is also applicable if you prefer using a different editor or IDE.
Click on in PhpStorm to browse to your generated SDK directory and then click .
2. Add a new Test Project
Create a new directory by right clicking on the solution name as shown below:
Name the directory as "test"
Add a PHP file to this project
Name it "testSDK"
Depending on your project setup, you might need to include composer's autoloader in your PHP code to enable auto loading of classes.
It is important that the path inside require_once correctly points to the file inside the vendor directory created during dependency installations.
After this you can add code to initialize the client library and acquire the instance of a Controller class. Sample code to initialize the client library and using controller methods is given in the subsequent sections.
3. Run the Test Project
To run your project you must set the Interpreter for your project. Interpreter is the PHP engine installed on your computer.
Open from menu.
Select from within
Browse for Interpreters near the option and choose your interpreter.
Once the interpreter is selected, click
To run your project, right click on your PHP file inside your Test project and click on
How to Test
Unit tests in this SDK can be run using PHPUnit.
- First install the dependencies using composer including the
require-dev
dependencies. - Run
vendor\bin\phpunit --verbose
from commandline to execute tests. If you have installed PHPUnit globally, run tests usingphpunit --verbose
instead.
You can change the PHPUnit test configuration in the phpunit.xml
file.
Initialization
Authentication
In order to setup authentication and initialization of the API client, you need the following information.
Parameter | Description |
---|---|
basicAuthUserName | The username to use with basic authentication |
basicAuthPassword | The password to use with basic authentication |
API client can be initialized as following.
Class Reference
List of Controllers
- SubscriptionsController
- OrdersController
- PlansController
- InvoicesController
- CustomersController
- ChargesController
- RecipientsController
- TokensController
- SellersController
- TransactionsController
- TransfersController
SubscriptionsController
Get singleton instance
The singleton instance of the class can be accessed from the API Client.
getIncrementById
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription Id | |
incrementId | The increment Id |
Example Usage
updateSubscriptionStartAt
Updates the start at date from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
request | Request for updating the subscription start date | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateSubscriptionCard
Updates the credit card from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for updating a card | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
updateSubscriptionItem
Updates a subscription item
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription Id | |
itemId | Item id | |
body | Request for updating a subscription item | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createUsage
Creates a usage
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription Id | |
itemId | Item id | |
body | Request for creating a usage | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getSubscription
Gets a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id |
Example Usage
updateSubscriptionPaymentMethod
Updates the payment method from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for updating the paymentmethod from a subscription | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createSubscription
Creates a new subscription
Parameters
Parameter | Tags | Description |
---|---|---|
body | Request for creating a subscription | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createSubscriptionItem
Creates a new Subscription item
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for creating a subscription item | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createDiscount
Creates a discount
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for creating a discount | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getSubscriptionItem
Get Subscription Item
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription Id | |
itemId | Item id |
Example Usage
updateSubscriptionAffiliationId
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | TODO: Add a parameter description | |
request | Request for updating a subscription affiliation id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
createAnUsage
Create Usage
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
itemId | Item id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getSubscriptions
Gets all subscriptions
Parameters
Parameter | Tags | Description |
---|---|---|
page | Page number | |
size | Page size | |
code | Filter for subscription's code | |
billingType | Filter for subscription's billing type | |
customerId | Filter for subscription's customer id | |
planId | Filter for subscription's plan id | |
cardId | Filter for subscription's card id | |
status | Filter for subscription's status | |
nextBillingSince | Filter for subscription's next billing date start range | |
nextBillingUntil | Filter for subscription's next billing date end range | |
createdSince | Filter for subscription's creation date start range | |
createdUntil | Filter for subscriptions creation date end range |
Example Usage
updateSubscriptionMetadata
Updates the metadata from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
request | Request for updating the subscrption metadata | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
deleteSubscriptionItem
Deletes a subscription item
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
subscriptionItemId | Subscription item id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
deleteUsage
Deletes a usage
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
itemId | The subscription item id | |
usageId | The usage id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
deleteDiscount
Deletes a discount
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
discountId | Discount Id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
cancelSubscription
Cancels a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for cancelling a subscription | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getDiscountById
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
discountId | TODO: Add a parameter description |
Example Usage
getDiscounts
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
page | Page number | |
size | Page size |
Example Usage
createIncrement
Creates a increment
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
request | Request for creating a increment | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getIncrements
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | The subscription id | |
page | Page number | |
size | Page size |
Example Usage
deleteIncrement
Deletes a increment
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription id | |
incrementId | Increment id | |
idempotencyKey | TODO: Add a parameter description |
Example Usage
getUsagesDetails
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Subscription Identifier | |
cycleId | Cycle id | |
size | Page size | |
page | Page number | |
itemId | Identificador do item | |
group | identificador da loja (account) de cada item |
Example Usage
getUsages
Lists all usages from a subscription item
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
itemId | Required |
The subscription item id |
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Identification code in the client system |
group | Optional |
Identification group in the client system |
usedSince | Optional |
TODO: Add a parameter description |
usedUntil | Optional |
TODO: Add a parameter description |
Example Usage
getSubscriptionItems
Get Subscription Items
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
page | Optional |
Page number |
size | Optional |
Page size |
name | Optional |
The item name |
code | Optional |
Identification code in the client system |
status | Optional |
The item statis |
description | Optional |
The item description |
createdSince | Optional |
Filter for item's creation date start range |
createdUntil | Optional |
Filter for item's creation date end range |
Example Usage
updateSubscriptionDueDays
Updates the boleto due days from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateSubscriptionMiniumPrice
Atualização do valor mínimo da assinatura
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
Request da requisição com o valor mínimo que será configurado |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateSubscriptionBillingDate
Updates the billing date from a subscription
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
request | Required |
Request for updating the subscription billing date |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateLatestPeriodEndAt
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
TODO: Add a parameter description |
request | Required |
Request for updating the end date of the current signature cycle |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateCurrentCycleStatus
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
request | Required |
Request for updating the end date of the subscription current status |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getSubscriptionCycles
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
page | Required |
Page number |
size | Required |
Page size |
Example Usage
getSubscriptionCycleById
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription id |
cycleId | Required |
TODO: Add a parameter description |
Example Usage
renewSubscription
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getUsageReport
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
The subscription Id |
periodId | Required |
The period Id |
Example Usage
Back to List of Controllers
OrdersController
Get singleton instance
The singleton instance of the OrdersController
class can be accessed from the API Client.
getOrder
Gets an order
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order id |
Example Usage
createOrder
Creates a new Order
Parameters
Parameter | Tags | Description |
---|---|---|
body | Required |
Request for creating an order |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getOrders
Gets all orders
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for order's code |
status | Optional |
Filter for order's status |
createdSince | Optional |
Filter for order's creation date start range |
createdUntil | Optional |
Filter for order's creation date end range |
customerId | Optional |
Filter for order's customer id |
Example Usage
updateOrderMetadata
Updates the metadata from an order
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
The order id |
request | Required |
Request for updating the order metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
deleteAllOrderItems
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updateOrderItem
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
request | Required |
Item Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
deleteOrderItem
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
createOrderItem
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
request | Required |
Order Item Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
getOrderItem
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
orderId | Required |
Order Id |
itemId | Required |
Item Id |
Example Usage
updateOrderStatus
TODO: Add a method description
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Order Id |
request | Required |
Update Order Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
Back to List of Controllers
PlansController
Get singleton instance
The singleton instance of the PlansController
class can be accessed from the API Client.
createPlanItem
Adds a new item to a plan
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
request | Required |
Request for creating a plan item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
updatePlanItem
Updates a plan item
function updatePlanItem(
$planId,
$planItemId,
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
body | Required |
Request for updating the plan item |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$body = new UpdatePlanItemRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlanItem($planId, $planItemId, $body, $idempotencyKey);
getPlan
Gets a plan
function getPlan($planId)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
Example Usage
$planId = 'plan_id';
$result = $plans->getPlan($planId);
deletePlan
Deletes a plan
function deletePlan(
$planId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$idempotencyKey = 'idempotency-key';
$result = $plans->deletePlan($planId, $idempotencyKey);
updatePlan
Updates a plan
function updatePlan(
$planId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
request | Required |
Request for updating a plan |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$request = new UpdatePlanRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlan($planId, $request, $idempotencyKey);
createPlan
Creates a new plan
function createPlan(
$body,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
body | Required |
Request for creating a plan |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$body = new CreatePlanRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->createPlan($body, $idempotencyKey);
getPlans
Gets all plans
function getPlans(
$page = null,
$size = null,
$name = null,
$status = null,
$billingType = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
name | Optional |
Filter for Plan's name |
status | Optional |
Filter for Plan's status |
billingType | Optional |
Filter for plan's billing type |
createdSince | Optional |
Filter for plan's creation date start range |
createdUntil | Optional |
Filter for plan's creation date end range |
Example Usage
$page = 202;
$size = 202;
$name = 'name';
$status = 'status';
$billingType = 'billing_type';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $plans->getPlans($page, $size, $name, $status, $billingType, $createdSince, $createdUntil);
updatePlanMetadata
Updates the metadata from a plan
function updatePlanMetadata(
$planId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
The plan id |
request | Required |
Request for updating the plan metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $plans->updatePlanMetadata($planId, $request, $idempotencyKey);
getPlanItem
Gets a plan item
function getPlanItem(
$planId,
$planItemId)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$result = $plans->getPlanItem($planId, $planItemId);
deletePlanItem
Removes an item from a plan
function deletePlanItem(
$planId,
$planItemId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
planId | Required |
Plan id |
planItemId | Required |
Plan item id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$planId = 'plan_id';
$planItemId = 'plan_item_id';
$idempotencyKey = 'idempotency-key';
$result = $plans->deletePlanItem($planId, $planItemId, $idempotencyKey);
Back to List of Controllers
InvoicesController
Get singleton instance
The singleton instance of the InvoicesController
class can be accessed from the API Client.
$invoices = $client->getInvoices();
cancelInvoice
Cancels an invoice
function cancelInvoice(
$invoiceId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$idempotencyKey = 'idempotency-key';
$result = $invoices->cancelInvoice($invoiceId, $idempotencyKey);
getInvoice
Gets an invoice
function getInvoice($invoiceId)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice Id |
Example Usage
$invoiceId = 'invoice_id';
$result = $invoices->getInvoice($invoiceId);
createInvoice
Create an Invoice
function createInvoice(
$subscriptionId,
$cycleId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
cycleId | Required |
Cycle Id |
request | Optional |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$subscriptionId = 'subscription_id';
$cycleId = 'cycle_id';
$request = new CreateInvoiceRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->createInvoice($subscriptionId, $cycleId, $request, $idempotencyKey);
updateInvoiceStatus
Updates the status from an invoice
function updateInvoiceStatus(
$invoiceId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
Invoice Id |
request | Required |
Request for updating an invoice's status |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$request = new UpdateInvoiceStatusRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->updateInvoiceStatus($invoiceId, $request, $idempotencyKey);
getInvoices
Gets all invoices
function getInvoices(
$page = null,
$size = null,
$code = null,
$customerId = null,
$subscriptionId = null,
$createdSince = null,
$createdUntil = null,
$status = null,
$dueSince = null,
$dueUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for Invoice's code |
customerId | Optional |
Filter for Invoice's customer id |
subscriptionId | Optional |
Filter for Invoice's subscription id |
createdSince | Optional |
Filter for Invoice's creation date start range |
createdUntil | Optional |
Filter for Invoices creation date end range |
status | Optional |
Filter for Invoice's status |
dueSince | Optional |
Filter for Invoice's due date start range |
dueUntil | Optional |
Filter for Invoice's due date end range |
Example Usage
$page = 39;
$size = 39;
$code = 'code';
$customerId = 'customer_id';
$subscriptionId = 'subscription_id';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$status = 'status';
$dueSince = date("D M d, Y G:i");
$dueUntil = date("D M d, Y G:i");
$result = $invoices->getInvoices($page, $size, $code, $customerId, $subscriptionId, $createdSince, $createdUntil, $status, $dueSince, $dueUntil);
updateInvoiceMetadata
Updates the metadata from an invoice
function updateInvoiceMetadata(
$invoiceId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
invoiceId | Required |
The invoice id |
request | Required |
Request for updating the invoice metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$invoiceId = 'invoice_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $invoices->updateInvoiceMetadata($invoiceId, $request, $idempotencyKey);
getPartialInvoice
TODO: Add a method description
function getPartialInvoice($subscriptionId)
Parameters
Parameter | Tags | Description |
---|---|---|
subscriptionId | Required |
Subscription Id |
Example Usage
$subscriptionId = 'subscription_id';
$result = $invoices->getPartialInvoice($subscriptionId);
Back to List of Controllers
CustomersController
Get singleton instance
The singleton instance of the CustomersController
class can be accessed from the API Client.
$customers = $client->getCustomers();
updateCard
Updates a card
function updateCard(
$customerId,
$cardId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
cardId | Required |
Card id |
request | Required |
Request for updating a card |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$cardId = 'card_id';
$request = new UpdateCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCard($customerId, $cardId, $request, $idempotencyKey);
updateAddress
Updates an address
function updateAddress(
$customerId,
$addressId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
addressId | Required |
Address Id |
request | Required |
Request for updating an address |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$addressId = 'address_id';
$request = new UpdateAddressRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateAddress($customerId, $addressId, $request, $idempotencyKey);
getCustomer
Get a customer
function getCustomer($customerId)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
Example Usage
$customerId = 'customer_id';
$result = $customers->getCustomer($customerId);
getAccessTokens
Get all access tokens from a customer
function getAccessTokens(
$customerId,
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$customerId = 'customer_id';
$page = 39;
$size = 39;
$result = $customers->getAccessTokens($customerId, $page, $size);
getAddresses
Gets all adressess from a customer
function getAddresses(
$customerId,
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$customerId = 'customer_id';
$page = 39;
$size = 39;
$result = $customers->getAddresses($customerId, $page, $size);
getCards
Get all cards from a customer
function getCards(
$customerId,
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$customerId = 'customer_id';
$page = 39;
$size = 39;
$result = $customers->getCards($customerId, $page, $size);
deleteAccessTokens
Delete a Customer's access tokens
function deleteAccessTokens($customerId)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
Example Usage
$customerId = 'customer_id';
$result = $customers->deleteAccessTokens($customerId);
getAccessToken
Get a Customer's access token
function getAccessToken(
$customerId,
$tokenId)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
tokenId | Required |
Token Id |
Example Usage
$customerId = 'customer_id';
$tokenId = 'token_id';
$result = $customers->getAccessToken($customerId, $tokenId);
createAccessToken
Creates a access token for a customer
function createAccessToken(
$customerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
request | Required |
Request for creating a access token |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$request = new CreateAccessTokenRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createAccessToken($customerId, $request, $idempotencyKey);
deleteAccessToken
Delete a customer's access token
function deleteAccessToken(
$customerId,
$tokenId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
tokenId | Required |
Token Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$tokenId = 'token_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteAccessToken($customerId, $tokenId, $idempotencyKey);
updateCustomerMetadata
Updates the metadata a customer
function updateCustomerMetadata(
$customerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
The customer id |
request | Required |
Request for updating the customer metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCustomerMetadata($customerId, $request, $idempotencyKey);
updateCustomer
Updates a customer
function updateCustomer(
$customerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
request | Required |
Request for updating a customer |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$request = new UpdateCustomerRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->updateCustomer($customerId, $request, $idempotencyKey);
getAddress
Get a customer's address
function getAddress(
$customerId,
$addressId)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
addressId | Required |
Address Id |
Example Usage
$customerId = 'customer_id';
$addressId = 'address_id';
$result = $customers->getAddress($customerId, $addressId);
deleteAddress
Delete a Customer's address
function deleteAddress(
$customerId,
$addressId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
addressId | Required |
Address Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$addressId = 'address_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteAddress($customerId, $addressId, $idempotencyKey);
deleteCard
Delete a customer's card
function deleteCard(
$customerId,
$cardId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
cardId | Required |
Card Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$cardId = 'card_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->deleteCard($customerId, $cardId, $idempotencyKey);
createAddress
Creates a new address for a customer
function createAddress(
$customerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer Id |
request | Required |
Request for creating an address |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$request = new CreateAddressRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createAddress($customerId, $request, $idempotencyKey);
getCard
Get a customer's card
function getCard(
$customerId,
$cardId)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
cardId | Required |
Card id |
Example Usage
$customerId = 'customer_id';
$cardId = 'card_id';
$result = $customers->getCard($customerId, $cardId);
createCard
Creates a new card for a customer
function createCard(
$customerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
request | Required |
Request for creating a card |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$request = new CreateCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createCard($customerId, $request, $idempotencyKey);
getCustomers
Get all Customers
function getCustomers(
$name = null,
$document = null,
$page = 1,
$size = 10,
$email = null,
$code = null)
Parameters
Parameter | Tags | Description |
---|---|---|
name | Optional |
Name of the Customer |
document | Optional |
Document of the Customer |
page | Optional DefaultValue |
Current page the the search |
size | Optional DefaultValue |
Quantity pages of the search |
Optional |
Customer's email | |
code | Optional |
Customer's code |
Example Usage
$name = 'name';
$document = 'document';
$page = 1;
$size = 10;
$email = 'email';
$code = 'Code';
$result = $customers->getCustomers($name, $document, $page, $size, $email, $code);
renewCard
Renew a card
function renewCard(
$customerId,
$cardId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
customerId | Required |
Customer id |
cardId | Required |
Card Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$customerId = 'customer_id';
$cardId = 'card_id';
$idempotencyKey = 'idempotency-key';
$result = $customers->renewCard($customerId, $cardId, $idempotencyKey);
createCustomer
Creates a new customer
function createCustomer(
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Request for creating a customer |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$request = new CreateCustomerRequest();
$idempotencyKey = 'idempotency-key';
$result = $customers->createCustomer($request, $idempotencyKey);
Back to List of Controllers
ChargesController
Get singleton instance
The singleton instance of the ChargesController
class can be accessed from the API Client.
$charges = $client->getCharges();
updateChargeCard
Updates the card from a charge
function updateChargeCard(
$chargeId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Required |
Request for updating a charge's card |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new UpdateChargeCardRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeCard($chargeId, $request, $idempotencyKey);
updateChargePaymentMethod
Updates a charge's payment method
function updateChargePaymentMethod(
$chargeId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Required |
Request for updating the payment method from a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new UpdateChargePaymentMethodRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargePaymentMethod($chargeId, $request, $idempotencyKey);
createCharge
Creates a new charge
function createCharge(
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Request for creating a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$request = new CreateChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->createCharge($request, $idempotencyKey);
getCharge
Get a charge from its id
function getCharge($chargeId)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
Example Usage
$chargeId = 'charge_id';
$result = $charges->getCharge($chargeId);
retryCharge
Retries a charge
function retryCharge(
$chargeId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$idempotencyKey = 'idempotency-key';
$result = $charges->retryCharge($chargeId, $idempotencyKey);
getCharges
Lists all charges
function getCharges(
$page = null,
$size = null,
$code = null,
$status = null,
$paymentMethod = null,
$customerId = null,
$orderId = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
code | Optional |
Filter for charge's code |
status | Optional |
Filter for charge's status |
paymentMethod | Optional |
Filter for charge's payment method |
customerId | Optional |
Filter for charge's customer id |
orderId | Optional |
Filter for charge's order id |
createdSince | Optional |
Filter for the beginning of the range for charge's creation |
createdUntil | Optional |
Filter for the end of the range for charge's creation |
Example Usage
$page = 39;
$size = 39;
$code = 'code';
$status = 'status';
$paymentMethod = 'payment_method';
$customerId = 'customer_id';
$orderId = 'order_id';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $charges->getCharges($page, $size, $code, $status, $paymentMethod, $customerId, $orderId, $createdSince, $createdUntil);
updateChargeMetadata
Updates the metadata from a charge
function updateChargeMetadata(
$chargeId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
The charge id |
request | Required |
Request for updating the charge metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeMetadata($chargeId, $request, $idempotencyKey);
cancelCharge
Cancel a charge
function cancelCharge(
$chargeId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Optional |
Request for cancelling a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new CreateCancelChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->cancelCharge($chargeId, $request, $idempotencyKey);
captureCharge
Captures a charge
function captureCharge(
$chargeId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge id |
request | Optional |
Request for capturing a charge |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new CreateCaptureChargeRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->captureCharge($chargeId, $request, $idempotencyKey);
updateChargeDueDate
Updates the due date from a charge
function updateChargeDueDate(
$chargeId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge Id |
request | Required |
Request for updating the due date |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new UpdateChargeDueDateRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->updateChargeDueDate($chargeId, $request, $idempotencyKey);
confirmPayment
TODO: Add a method description
function confirmPayment(
$chargeId,
$request = null,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
TODO: Add a parameter description |
request | Optional |
Request for confirm payment |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$chargeId = 'charge_id';
$request = new CreateConfirmPaymentRequest();
$idempotencyKey = 'idempotency-key';
$result = $charges->confirmPayment($chargeId, $request, $idempotencyKey);
getChargeTransactions
TODO: Add a method description
function getChargeTransactions(
$chargeId,
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
chargeId | Required |
Charge Id |
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$chargeId = 'charge_id';
$page = 39;
$size = 39;
$result = $charges->getChargeTransactions($chargeId, $page, $size);
getChargesSummary
TODO: Add a method description
function getChargesSummary(
$status,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
status | Required |
TODO: Add a parameter description |
createdSince | Optional |
TODO: Add a parameter description |
createdUntil | Optional |
TODO: Add a parameter description |
Example Usage
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $charges->getChargesSummary($status, $createdSince, $createdUntil);
Back to List of Controllers
RecipientsController
Get singleton instance
The singleton instance of the RecipientsController
class can be accessed from the API Client.
$recipients = $client->getRecipients();
updateRecipientMetadata
Updates recipient metadata
function updateRecipientMetadata(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientMetadata($recipientId, $request, $idempotencyKey);
getTransfer
Gets a transfer
function getTransfer(
$recipientId,
$transferId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
transferId | Required |
Transfer id |
Example Usage
$recipientId = 'recipient_id';
$transferId = 'transfer_id';
$result = $recipients->getTransfer($recipientId, $transferId);
getTransfers
Gets a paginated list of transfers for the recipient
function getTransfers(
$recipientId,
$page = null,
$size = null,
$status = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
page | Optional |
Page number |
size | Optional |
Page size |
status | Optional |
Filter for transfer status |
createdSince | Optional |
Filter for start range of transfer creation date |
createdUntil | Optional |
Filter for end range of transfer creation date |
Example Usage
$recipientId = 'recipient_id';
$page = 39;
$size = 39;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getTransfers($recipientId, $page, $size, $status, $createdSince, $createdUntil);
createAnticipation
Creates an anticipation
function createAnticipation(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Anticipation data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new CreateAnticipationRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createAnticipation($recipientId, $request, $idempotencyKey);
getAnticipation
Gets an anticipation
function getAnticipation(
$recipientId,
$anticipationId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
anticipationId | Required |
Anticipation id |
Example Usage
$recipientId = 'recipient_id';
$anticipationId = 'anticipation_id';
$result = $recipients->getAnticipation($recipientId, $anticipationId);
getAnticipationLimits
Gets the anticipation limits for a recipient
function getAnticipationLimits(
$recipientId,
$timeframe,
$paymentDate)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
timeframe | Required |
Timeframe |
paymentDate | Required |
Anticipation payment date |
Example Usage
$recipientId = 'recipient_id';
$timeframe = 'timeframe';
$paymentDate = date("D M d, Y G:i");
$result = $recipients->getAnticipationLimits($recipientId, $timeframe, $paymentDate);
getAnticipations
Retrieves a paginated list of anticipations from a recipient
function getAnticipations(
$recipientId,
$page = null,
$size = null,
$status = null,
$timeframe = null,
$paymentDateSince = null,
$paymentDateUntil = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
page | Optional |
Page number |
size | Optional |
Page size |
status | Optional |
Filter for anticipation status |
timeframe | Optional |
Filter for anticipation timeframe |
paymentDateSince | Optional |
Filter for start range for anticipation payment date |
paymentDateUntil | Optional |
Filter for end range for anticipation payment date |
createdSince | Optional |
Filter for start range for anticipation creation date |
createdUntil | Optional |
Filter for end range for anticipation creation date |
Example Usage
$recipientId = 'recipient_id';
$page = 39;
$size = 39;
$status = 'status';
$timeframe = 'timeframe';
$paymentDateSince = date("D M d, Y G:i");
$paymentDateUntil = date("D M d, Y G:i");
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getAnticipations($recipientId, $page, $size, $status, $timeframe, $paymentDateSince, $paymentDateUntil, $createdSince, $createdUntil);
updateRecipient
Updates a recipient
function updateRecipient(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Recipient data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateRecipientRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipient($recipientId, $request, $idempotencyKey);
updateRecipientDefaultBankAccount
Updates the default bank account from a recipient
function updateRecipientDefaultBankAccount(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Bank account data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateRecipientBankAccountRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientDefaultBankAccount($recipientId, $request, $idempotencyKey);
getRecipient
Retrieves recipient information
function getRecipient($recipientId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipiend id |
Example Usage
$recipientId = 'recipient_id';
$result = $recipients->getRecipient($recipientId);
getRecipients
Retrieves paginated recipients information
function getRecipients(
$page = null,
$size = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
Example Usage
$page = 130;
$size = 130;
$result = $recipients->getRecipients($page, $size);
getBalance
Get balance information for a recipient
function getBalance($recipientId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
Example Usage
$recipientId = 'recipient_id';
$result = $recipients->getBalance($recipientId);
createTransfer
Creates a transfer for a recipient
function createTransfer(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient Id |
request | Required |
Transfer data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new CreateTransferRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createTransfer($recipientId, $request, $idempotencyKey);
createRecipient
Creates a new recipient
function createRecipient(
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Recipient data |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$request = new CreateRecipientRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->createRecipient($request, $idempotencyKey);
updateRecipientTransferSettings
TODO: Add a method description
function updateRecipientTransferSettings(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient Identificator |
request | Required |
TODO: Add a parameter description |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateTransferSettingsRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateRecipientTransferSettings($recipientId, $request, $idempotencyKey);
createWithdraw
TODO: Add a method description
function createWithdraw(
$recipientId,
$request)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
request | Required |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new CreateWithdrawRequest();
$result = $recipients->createWithdraw($recipientId, $request);
getWithdrawById
TODO: Add a method description
function getWithdrawById(
$recipientId,
$withdrawalId)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
withdrawalId | Required |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$withdrawalId = 'withdrawal_id';
$result = $recipients->getWithdrawById($recipientId, $withdrawalId);
getWithdrawals
Gets a paginated list of transfers for the recipient
function getWithdrawals(
$recipientId,
$page = null,
$size = null,
$status = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
TODO: Add a parameter description |
page | Optional |
TODO: Add a parameter description |
size | Optional |
TODO: Add a parameter description |
status | Optional |
TODO: Add a parameter description |
createdSince | Optional |
TODO: Add a parameter description |
createdUntil | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$page = 130;
$size = 130;
$status = 'status';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $recipients->getWithdrawals($recipientId, $page, $size, $status, $createdSince, $createdUntil);
updateAutomaticAnticipationSettings
Updates recipient metadata
function updateAutomaticAnticipationSettings(
$recipientId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
recipientId | Required |
Recipient id |
request | Required |
Metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$recipientId = 'recipient_id';
$request = new UpdateAutomaticAnticipationSettingsRequest();
$idempotencyKey = 'idempotency-key';
$result = $recipients->updateAutomaticAnticipationSettings($recipientId, $request, $idempotencyKey);
Back to List of Controllers
TokensController
Get singleton instance
The singleton instance of the TokensController
class can be accessed from the API Client.
$tokens = $client->getTokens();
getToken
Tags:
Skips Authentication
Gets a token from its id
function getToken(
$id,
$publicKey)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Token id |
publicKey | Required |
Public key |
Example Usage
$id = 'id';
$publicKey = 'public_key';
$result = $tokens->getToken($id, $publicKey);
createToken
Tags:
Skips Authentication
TODO: Add a method description
function createToken(
$publicKey,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
publicKey | Required |
Public key |
request | Required |
Request for creating a token |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$publicKey = 'public_key';
$request = new CreateTokenRequest();
$idempotencyKey = 'idempotency-key';
$result = $tokens->createToken($publicKey, $request, $idempotencyKey);
Back to List of Controllers
SellersController
Get singleton instance
The singleton instance of the SellersController
class can be accessed from the API Client.
$sellers = $client->getSellers();
getSellerById
TODO: Add a method description
function getSellerById($id)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
Seller Id |
Example Usage
$id = 'id';
$result = $sellers->getSellerById($id);
deleteSeller
TODO: Add a method description
function deleteSeller(
$sellerId,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
sellerId | Required |
Seller Id |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$sellerId = 'sellerId';
$idempotencyKey = 'idempotency-key';
$result = $sellers->deleteSeller($sellerId, $idempotencyKey);
createSeller
TODO: Add a method description
function createSeller(
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
Seller Model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$request = new CreateSellerRequest();
$idempotencyKey = 'idempotency-key';
$result = $sellers->createSeller($request, $idempotencyKey);
getSellers
TODO: Add a method description
function getSellers(
$page = null,
$size = null,
$name = null,
$document = null,
$code = null,
$status = null,
$type = null,
$createdSince = null,
$createdUntil = null)
Parameters
Parameter | Tags | Description |
---|---|---|
page | Optional |
Page number |
size | Optional |
Page size |
name | Optional |
TODO: Add a parameter description |
document | Optional |
TODO: Add a parameter description |
code | Optional |
TODO: Add a parameter description |
status | Optional |
TODO: Add a parameter description |
type | Optional |
TODO: Add a parameter description |
createdSince | Optional |
TODO: Add a parameter description |
createdUntil | Optional |
TODO: Add a parameter description |
Example Usage
$page = 130;
$size = 130;
$name = 'name';
$document = 'document';
$code = 'code';
$status = 'status';
$type = 'type';
$createdSince = date("D M d, Y G:i");
$createdUntil = date("D M d, Y G:i");
$result = $sellers->getSellers($page, $size, $name, $document, $code, $status, $type, $createdSince, $createdUntil);
updateSeller
TODO: Add a method description
function updateSeller(
$id,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
id | Required |
TODO: Add a parameter description |
request | Required |
Update Seller model |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$id = 'id';
$request = new UpdateSellerRequest();
$idempotencyKey = 'idempotency-key';
$result = $sellers->updateSeller($id, $request, $idempotencyKey);
updateSellerMetadata
TODO: Add a method description
function updateSellerMetadata(
$sellerId,
$request,
$idempotencyKey = null)
Parameters
Parameter | Tags | Description |
---|---|---|
sellerId | Required |
Seller Id |
request | Required |
Request for updating the charge metadata |
idempotencyKey | Optional |
TODO: Add a parameter description |
Example Usage
$sellerId = 'seller_id';
$request = new UpdateMetadataRequest();
$idempotencyKey = 'idempotency-key';
$result = $sellers->updateSellerMetadata($sellerId, $request, $idempotencyKey);
Back to List of Controllers
TransactionsController
Get singleton instance
The singleton instance of the TransactionsController
class can be accessed from the API Client.
$transactions = $client->getTransactions();
getTransaction
TODO: Add a method description
function getTransaction($transactionId)
Parameters
Parameter | Tags | Description |
---|---|---|
transactionId | Required |
TODO: Add a parameter description |
Example Usage
$transactionId = 'transaction_id';
$result = $transactions->getTransaction($transactionId);
Back to List of Controllers
TransfersController
Get singleton instance
The singleton instance of the TransfersController
class can be accessed from the API Client.
$transfers = $client->getTransfers();
createTransfer
TODO: Add a method description
function createTransfer($request)
Parameters
Parameter | Tags | Description |
---|---|---|
request | Required |
TODO: Add a parameter description |
Example Usage
$request = new CreateTransfer();
$result = $transfers->createTransfer($request);
getTransferById
TODO: Add a method description
function getTransferById($transferId)
Parameters
Parameter | Tags | Description |
---|---|---|
transferId | Required |
TODO: Add a parameter description |
Example Usage
$transferId = 'transfer_id';
$result = $transfers->getTransferById($transferId);
getTransfers
Gets all transfers
function getTransfers()
Example Usage
$result = $transfers->getTransfers();
Back to List of Controllers
All versions of mundiapi with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
apimatic/unirest-php Version ^2.0.0
apimatic/jsonmapper Version ^1.3.1