Get Sandbox Access

Paybase Developer Centre

OverviewAPI GuidesGetting StartedRecipesGig Economy PlatformsSharing Economy PlatformsMarketplacesBlockchain BusinessesEscrowRolesRulesDue DiligenceCustomersAccountsBank AccountsCardsTransactionsIntroductionInboundGetting money into the systemTransaction ReferenceAccount ReferenceInternalOutboundEscrowSplit PaymentsRefundsStrong Customer Authentication3D Secure AuthenticationIntroductionCreate a cardCreate a transactionDocument UploadStatementsWebhooksErrorsPQLAPI ReferenceAccountCreate an accountRetrieve an accountTransition account statusList all accountsAnnotate an accountDelete annotation from an accountTag an accountDelete tag from an accountBank AccountCreate a bank accountRetrieve a bank accountUpdate a bank accountTransition bank account statusList all bank accountsAnnotate a bank accountDelete annotation from a bank accountTag a bank accountDelete tag from a bank accountCardCreate a cardRetrieve a cardUpdate a cardTransition card statusList all cardsAnnotate a cardDelete annotation from a cardTag a cardDelete tag from a cardCardholderCreate a cardholderRetrieve a cardholderUpdate a cardholderTransition cardholder statusList all cardholdersAnnotate a cardholderDelete annotation from a cardholderTag a cardholderDelete tag from a cardholderCreate an authentication tokenCheckCreate a checkCustomerIndividual CustomerCreate a customerRetrieve a customerUpdate a customerSole TraderCreate a customerRetrieve a customerUpdate a customerOrganisationCreate a CustomerRetrieve a CustomerUpdate a CustomerIncorporated BusinessCreate a customerRetrieve a customerUpdate a customerBusiness PersonAdd a business personRetrieve a business personUpdate a business personDelete a business personRetrieve a customerTransition state of a customerList all customersAnnotate a customerDelete annotation from a customerTag a customerRemove tag from a customerCreate an authentication tokenTouch a customerDocumentCreate a documentRetrieve a documentList Document TypesReferenceRetrieve a referenceStatementRetrieve a statementStatusRetrieve API statusTransactionCreate inbound transactionCreate internal transactionCreate outbound transactionRetrieve a transactionTransition transaction statusList all transactionsAnnotate a transactionDelete annotation from a transactionTag a transactionDelete tag from a transaction
API version: d8b96b6

Customer Statements

Statements for a Customer's activity on the platform may be generated via the getStatement endpoint. Given a customerId, a fromDate and a toDate a PDF outlining all adjustments made to that Customer's accounts will be generated and downloaded.

1
2
3
4
5
6
7
8
9
import { v1 } from '@paybase/client';

const client = v1('<- API Key ->', { sandbox: true });

const result = await client.getStatement({
  id: "customer/82c6fb26-8027-454a-8451-ae37c0f9d72c",
  fromDate: "1546214400000",
  toDate: "1555410374243"
});

1
2
3
4
5
6
7
8
9
import json
import requests

requests.get(
  "https://api-json.sandbox.paybase.io/v1/statement/customer/82c6fb26-8027-454a-8451-ae37c0f9d72cParams: id/1546214400000Params: fromDate/1555410374243Params: toDate",
  headers = {
    X-Token: "<X-Token goes here>"
  }
).json()

1
2
3
4
5
6
7
8
9
10
$client = new \GuzzleHttp\Client();
$client->request(
  "get",
  "https://api-json.sandbox.paybase.io/v1/statement/customer/82c6fb26-8027-454a-8451-ae37c0f9d72cParams: id/1546214400000Params: fromDate/1555410374243Params: toDate",
  [
    "headers" => [
      "X-Token" => "<X-Token goes here>",
    ]
  ]
);

1
2
3
curl -X GET \
"https://api-json.sandbox.paybase.io/v1/statement/customer/82c6fb26-8027-454a-8451-ae37c0f9d72cParams: id/1546214400000Params: fromDate/1555410374243Params: toDate"  -H "X-Token: <X-Token goes here>" \

Here's a sample of what the document will look like: sample