One-shot Credit Card Bill Payment. Accepts all visa & master, diners, amex card
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Send a credit-card payment using the product enabled for your account.
POST https://pay2new.in/apis/payout/v1/ccard
Headers
| Header | Required | Description |
|---|---|---|
secret | Yes | Your Pay2New API secret. |
Content-Type | Yes | application/json |
outletId | No | Pay2New outlet/customer ID returned after successful onboarding; do not send the provider outlet ID. If supplied, ownership and activation are checked. |
Accept | No | Request a JSON response. |
Requests require an active partner account, approved KYC, active wallet and API access, an allowlisted source IP, and the relevant service enabled.
JSON request
| Field | Required | Description |
|---|---|---|
number | Yes | Destination credit card number. |
amount | Yes | Amount. Accepted as a JSON number or decimal string. |
latitude | Yes | Latitude as a decimal value. Accepted as a JSON number or decimal string. |
longitude | Yes | Longitude as a decimal value. Accepted as a JSON number or decimal string. |
request_id | Yes | Your reference for this request. At least 8 characters. |
product_code | Yes | Product code enabled for your partner account. Retrieve it from the product list. Digits only. |
customer_name | No | Recipient name. Include this field in payout requests. |
ip | Yes | IPv4 address of the customer-facing endpoint. |
ifsc | No | Destination IFSC. Include it for bank-account and credit-card destinations as applicable. |
Usage notes
- Use the product_code enabled for this payment type and transfer mode.
- outletId is optional; if supplied, it must be an active Pay2New outlet linked to your partner account.
- Include customer_name in the request.
- status 3 means processing is pending or uncertain. Confirm the existing payment’s status before initiating another payment.
Request example
All identities and account values below are synthetic. Replace placeholders, including the enabled product code and fresh device capture, before sending a request.
{
"number": "000000000001",
"amount": "100.00",
"latitude": "18.5204",
"longitude": "73.8567",
"request_id": "EXAMPLE202609260001",
"product_code": "YOUR_PRODUCT_CODE",
"ip": "192.0.2.10",
"customer_name": "Example Recipient",
"ifsc": "ABCD0123456"
}
Response
Application status is returned in the JSON status field. A successful HTTP response alone does not confirm a successful operation.
| Field | Description |
|---|---|
status | integer: application status, not HTTP status |
message | string |
order_id | string |
txn_value | decimal string |
balance | decimal string or number |
request_id | string |
bene | provider payee object or null; may be absent |
bank_reference | string or null; may be absent |
Provider-dependent fields may be absent or null. status: 2 indicates a failure. For transaction endpoints, status: 3 indicates pending or uncertain processing and requires status confirmation.
Illustrative response:
{
"status": 1,
"message": "Success",
"order_id": "EXAMPLE_ORDER_001",
"txn_value": "100.00",
"balance": "1000.00",
"request_id": "EXAMPLE202609260001",
"bene": {
"name": "Example Recipient",
"accountNumber": "000000000001"
},
"bank_reference": "EXAMPLE_BANK_REFERENCE"
}
Errors
Validation errors can include an errors object keyed by field name. Authentication, outlet, service and other processing errors can return only status and message. Errors are application-level responses; do not rely on an HTTP 400 status.
{
"status": 2,
"message": "Invalid Parameters",
"errors": {
"number": "Provide a valid value for this field."
}
}
