Naviga Subscribe API
Naviga
  • Subscribe API
  • Payments API
    • Migration to Payments API
      • Apply Payment
      • EZPay Sign Up
      • Update EZPay Info
      • Restart
      • Create Payment Method
      • Get Payment Method by Id
      • Add Tip
  • Users Orchestrator API
    • Migration to UsersOrchestrator API
      • Get By Id
      • Get By Email
      • Get By Query String
      • Get By Encrypted Email
      • Get By Encrypted Id
      • Get By Token
      • Create User
      • Create Passwordless User
      • Update User
      • Update Password
      • Update Email
      • Authenticate/Authenticate By Token
      • ForgotPassword
      • Verify Email
      • Send Verification Code
  • Entitlements Orchestrator API
    • Migration to EntitlementsOrchestrator API
      • Access
Powered by GitBook
LogoLogo

COPYRIGHT © 2024 NAVIGA

On this page
  • Introduction
  • Comparison
  • Get Payment Method by Id
Export as PDF
  1. Payments API
  2. Migration to Payments API

Get Payment Method by Id

Introduction

This endpoint is used to retrieve the payment method information from the Naviga System based on the provided input parameter, PaymentMethodId.

Comparison

Note: For the time being, both the old and new endpoints are in the Billing API.

Billing API (OLD)
Billing API (NEW)

URL

/Billing/{subscriptionId}/PaymentMethods/{paymentMethodId}

/Billing/PaymentMethods/{paymentMethodId}

Method

GET

GET

Input Example

FromUri, subscriptionId and paymentMethodId

/Billing/1/PaymentMethods/1

FromUri, paymentMethodId

/Billing/PaymentMethods/1


Get Payment Method by Id

GET /Billing/PaymentMethods/{paymentMethodId}

This endpoint is used to retrieve the payment method information from the Naviga System based on the provided input parameter, PaymentMethodId.

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

PaymentMethodId*

Integer

Unique identifier of the payment method in Naviga System

{
  "Code": 200,
  "Errors": [],
  "Result": {
    "PaymentMethod": {
      "HolderName": "Test Test",
      "BankAccount": null,
      "BillingAddress": {
        "AddressId": 1859629,
        "StreetAddress": "424 B ST APT 11",
        "CityName": "MARYSVILLE",
        "StateCode": "CA",
        "ZipCode": "95901-5721",
        "ProvinceOrTerritory": "CA",
        "CountryCode": "US",
        "HouseNumber": "424",
        "StreetName": "B",
        "StreetSuffix": "ST",
        "DistrictName": "YUBA",
        "FipsCode": "06115",
        "UnitType": "APT",
        "UnitNumber": "11",
        "AddressName": "",
        "PhoneNumber": "",
        "BillingSystemAddressId": "1001634"
      },
      "CreditCard": {
        "CardOwner": "Test Test",
        "CreditCardType": 0,
        "CreditCardNumber": "411111******1111",
        "CreditCardExpirationMonth": "12",
        "CreditCardExpirationYear": "26"
      },
      "PaymentMethodId": 789496,
      "BillingSystemPaymentMethodId": "10193724",
      "PaymentGatewayToken": null,
      "PaymentGatewayCustomerId": null,
      "PaymentMethodTypeId": 1
    }
  },
  "SessionId": "27ec1745-8678-46ec-8fb7-fab743716383",
  "RequestId": "test"
}
{
   "Code":400,
   "Errors":[
      {
         "Message":"Invalid inputs.",
         "Code":"BILLING_01",
         "Type":{
            "Id":0,
            "Code":"Validation"
         },
         "ErrorSource":null
      }
   ],
   "Result":null,
   "SessionId":"string",
   "RequestId":"string"
}
{
   "Code":404,
   "Errors":[
      {
         "Message":".",
         "Code":"Billing_07",
         "Type":{
            "Id":0,
            "Code":"Validation"
         },
         "ErrorSource":null
      }
   ],
   "Result":null,
   "SessionId":"string",
   "RequestId":"string"
}
{
    "error": "Authorization is missing."
}
{
    "error": "X-SourceSystem is missing."
}
{
    "error": "Invalid Source System."
}
{
    "error": "Invalid authorization."
}
{
    "error": "Something went wrong. Please try again later."
}
PreviousCreate Payment MethodNextAdd Tip

Last updated 9 months ago