Add Tip

Introduction

This endpoint is used to handle the one-time and recurring payment transactions to add tips.

Comparison

Compared to the older model, the new input model requires just a few parameters, as explained in detail below.

Billing API (OLD)
Payments API (NEW)

URL

/Billing/Payments/{subscriptionId}/AddTip

/Payment/Tip

Method

POST

POST

Input Example

{
   "ExternalPaymentMethodId":"10200849",
   "CustomerId":null,
   "TipAmount":0.0,
   "CurrencyCode":null,
   "PaymentMethodType":0,
   "NewPaymentMethod":null,
   "TypeOfPayment":null,
   "ParentEventId":0,
   "Last4Digits":null,
   "AuthToken":"10200849",
   "AuthTokenPaymentMethodType":2,
   "IsTipAutoRenew":null,
   "ApplyToCredit":false,
   "ValidateMaxAmount":false,
   "InvoiceId":null,
   "CreateMapOnTheFly":false,
   "Notes":null,
   "Token":null,
   "RenewalTerm":"Month",
   "RenewalLength":"1",
   "RateCode":null,
   "RestartDate":null
}
{
   "PaymentMethodId":789771,
   "SubscriptionId":245316,
   "TipAmount":2.0,
   "TotalAmount":7.0,
   "IsTipAutoRenew":true,
   "ProcessingFeeAmount": 2.0,
   "ProcessingFeeTaxAmount": 3.0
}

Add Tip

POST /Payment

This endpoint is used to handle the one-time and recurring payment transactions to add tips.

Note: The parameters marked with an asterisk (*) are mandatory and must be included in the input model.

Headers

Name
Type
Description

Authorization*

String

JSON Web Token used for security purposes

X-SourceSystem*

String

To identify the consumer or the Source System

X-MediaGroupCode*

String

Media Group Code of the Tenant

X-ClientCode*

String

Client Code of the Tenant

X-PaperCode*

String

Paper Code of the Tenant

Request Body

Name
Type
Description

SubscriptionId*

Integer

Unique identifier of the Subscription in Naviga System

PaymentMethodId*

Integer

Unique identifier of the payment method in Naviga System

TipAmount*

Decimal

Tip amount

ProcessingFeeAmount

Decimal

The Fee amount being paid. Applicable for NCS clients.

ProcessingFeeTaxAmount

Decimal

The Fee tax amount being paid. Applicable for NCS clients.

IsTipAutoRenew*

Boolean

Indicates whether the Tip amount should be auto-renewed.

TotalAmount*

Decimal

Total amount being paid (TipAmount + ProcessingFeeAmount + ProcessingFeeTaxAmount)

{
  "Code": 200,
  "Errors": [],
  "Result": {
    "EventId": 0
  },
  "SessionId": "string",
  "RequestId": "string"
}

Last updated