1. Home
  2. Rebill Transaction

Rebill Transaction

Business and website owners often want to store credit card numbers for later to allow re-billing of customers for recurring orders, and allows easier checkout for repeat customers on a website. Normally rebilling requires businesses and websites to store credit card informations, which are subjected to strict PCI-DSS standards.
The rebill transaction mechanism enables businesses and websites to perform re-billing of customers for recurring orders without being enforced to store credit card information as this is handles by Payxpert.

A Rebill can only happen on a CCSale, CCAuthorize or Capture transaction. In the case of a Capture transaction, the transactionID of the Capture (not the initial CCAuthorize) must be passed as a parameter.


Environment Url Method Version
Production https://api.payxpert.com/transaction/{transactionID}/rebill POST >= 0200

Rebill Request

Mandatory fields
Field Type Max Length Requirement Description Version
transactionID N 20 M Initial transaction reference to rebill
amount N 10 M Number in minor unit, e.g. cents; 100 dollar cent equals to 1 dollar

Rebill Response

Field Type Max Length Requirement Description Version
transactionID N 20 M Transaction reference returned by the system
errorCode D 3 M See Messages and error codes
errorMessage S 100 M See Messages and error codes
statementDescriptor S 50 O ie: onlinemerchant.com

PHP Gateway Client

Transaction name : Rebill

PHP Methods

Method name Requirement
setReferralInformation M

PHP Example

$client = new GatewayClient();

$transaction = $client->newTransaction('Rebill', 'testMerchant', 'testPassword');
$transaction->setReferralInformation($saleOrCaptureTransactionID, 200);

$response = $transaction->send();

if ('000' === $response->errorCode) {
    $rebillTransactionID  = $response->transactionID;
} else {
    echo "Error {$response->errorCode} with message {$response->errorMessage}";

Java Gateway Client

Java Methods

Connector method doRebillTransaction
Request class RebillRequest
Response class RebillResponse

Java Examples

PaymentGatewayConnector connector = new PaymentGatewayConnector(API_URL, ORIGINATOR, PASSWORD);

RebillResponse response = null;
RebillRequest request = new RebillRequest();

try {
  response = connector.doRebillTransaction(request);
} catch (Exception e) {

if (response != null) {
  if (TransactionResultCode.TRANSACTION_SUCCESSFULLY.equals(response.getErrorCode()) {
    System.out.println("Success: " + response.getErrorMessage());
  } else {
    System.out.println("Failure: " + response.getErrorMessage());
Still any doubt?

Open a support ticket

Was this article helpful?