Accounts Creation Prepaid GPR

This API is used to create and attach accounts or walletsto an existing card. It is applicable only for the Primary, Supplementary, and Add-on cards of the Prepaid product. A request sent with Card Number Alias (CNA) fetches the associated device for further processing only if the status of device code is Normal. When the request isreceived with form factor as Card Pack ID (CPI) or Card (CRD), it is processed for all devices statuses other than Cancelled or Replaced. A maximum of 15 GPR accounts or wallets can be linked to the card

HTTP Status and Response Status Matrix

  • HTTP Code: This is the response status code issued by a server in response to a client's request made to the server.
  • Error Code: This is the error code returned by Credit+ Issuing application in the ‘code’ field of the response message indicating if the request was processed successfully or failed.
  • Reason: This is the description of the error code returned by Credit+ Issuing application.
HTTP CodeError CodeReason
400GPR100Invalid Card number alias
400GPR101Duplicate CNA found
400GPR102Invalid id/card pack id/device/CAN
400GPRW001Device not found
400GPRW005Wallet plan 1 Field is mandatory.
400GPRW006Duplicate wallet plans present in request.
400GPRW003Service request allowed only for GPR program.
400GPRW007Wallet plan not attached to program.
400GPRW008Invalid/Expired promotion plan.
400GPRW009Existing wallet plan cannot be used for generating new wallet.
400GPRW010Maximum 15 wallets other than Closed status are allowed.
400GPRW011New wallet under wallet plan can not be created as same characteristic wallet is already attached.
400GPRW013Error Creating GPR Wallet
400GPRW014Error while creating device wallet link.
400GPR104Device isin Cancelled/Replaced/Upgrade Status
400MISSING_REQUIRED_FIELDMissing Required Field identifier or packID or alias or number.
400INVALID_FIELD_LENGTHDevice Numbersize must be between 15 and 19.
400INVALID_FIELD_LENGTHId size must be between 14 and 36.
400INVALID_FIELD_LENGTHCard Pack ID size must be between 10 and 24.
400INVALID_FIELD_LENGTHAliassize must be between 1 and 24.
400INVALID_FIELD_LENGTHProgram Code size must be between 1 and 10.
400INVALID_FIELD_LENGTHDevice Plan Code size must be between 1 and 10.
400INVALID_FIELD_LENGTHPlan Code Code size must be between 1 and 10.
400INVALID_FIELD_LENGTHPromotion Code size must be between 1 and 10.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
date-time
required
length between 20 and 29

The date and time after which the request is considered as invalid. If the timestamp of the institution is greater than this timestamp, the API request is considered as expired and is returned. The dataValidUntilTimestamp parameter is converted into the institution time zone before comparing it with the institution date and time. It is expressed in ISO 8601 extended format. Must be either: YYYY-MM-DDThh:mm:ss[.sss]Z, or YYYY-MM-DDThh:mm:ss.ssshh:mm where [.sss] is optional and can be 1 to 3 digits.

card
required
accounts
array of objects
required
length ≤ 14

Array of values for an account record. A total number of 14 account plan codes and 14 account promotion codes can be added through this array.

accounts*
Headers
string
length ≤ 36

API consumer can share unique X-MC-Correlation-ID in HTTP header for each API request. It is recommended to generate UUID (maximum length: 36 alphanumeric characters.) that is compliant with RFC 4122. If it is not shared, then the system generates a unique value for each request.
For example, ac97d177-9345-4934-8343-0f91a7a02836

string
enum

API consumer can share X-MC-Channel in HTTP header for API requests. It isthe network or channel through which request isrouted. The only available value for Channel is API.

Allowed:
string

API consumer can share X-MC-Source in HTTP header for API requests. It identifies the request originators application. For the list of source values, see the Pre-conditions for HTTP Header of REST API topic in the Pre-requisite for Rest API section.

string
length ≤ 50

API consumer can share X-MC-Client-Application-User-ID in HTTP header for API requests. This parameter is a unique identifier to track actual user performing action at the client's end. This field is used only for logging purpose. The maximum length is 50.

string
length ≤ 36

API consumer can share X-MC-Idempotency-Key in HTTP headerfor API requests. It is a unique value that is generated by a client and sent to an API along with a request.
If a request fails partway through, the client retries with the same idempotency key value, and the server uses it to look up the state of request and continue from where it left off. During this time, the response of the earlier request will be returned if it is before the threshold time of 15 minutes. After this, the request will be processed as a new request and the response of the new request will be returned.
It is recommended to generate UUID (maximum length: 36) that is compliant with RFC 4122. For example, bc57d177-4593-3449-8343-0d81a7a02947

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json