Uncategorized

VIEW Response

POST http://apisandbox.onepay.com/billing/plan

The response to a billing creation request is sent back in this object

Sample Code


{
   "billing_response":{
          "result_code":1,
                                  "result_text":"SUCCESS",
                                  "result_sub_code":"000",
                                  "transaction_datetime":"04/13/2019 08:53:45"
                                }
                                ,"billing_plan":{
                                "abid":2879,
                                "customer_id":"1091913485057794",
                                "token":"3221510895193335",
                                "plan_type":1,
                                "schedule_type":"M",
                                "amount":500.0,
                                "start_date":"2019-04-14T00:00:00",
                                "periodicity":2,
                                "end_date":null,
                                "end_type":3,
                                "no_of_payments":2,
                                "reference_id":"7675656756",
                                "name":"test",
                                "active":true,
                                "billing_mode":"0",
                                "max_retry":1,
                                "bill_day":2,
                                "ref_token_id":null,
                                "email_receipt":false
                                }
                                ,"bill_sequence":[
                                {
                                  "id":0,
                                  "reference_id":1,
                                  "sequence_number":1,
                                  "amount":100.0,
                                  "schedule_date":"2019-02-03T00:00:00"
                  }
          ]
}

BODY

KEY VALUE DESCRIPTION
billing_response object
result_code numeric The overall status of the transaction.
One of the following:
1 - Approved from First Data
2- Any kind of Declined or Reject from First Data
3- Error from API validations
result_sub_code 3 digit response code from 000-999. First Data response code.
result_text string (up to 100 characters) Description of the outcome of the transaction from First Data. Erro details are provided from Gateway.
transaction_datetime date and time in yyyyMMddTHHmmssZ format Date and Time of the transaction response
billing_plan object object is present in *billing* request
bill_sequence object object is present in *billing* request
This element contains information of the Bill Sequence. If a billing plan has transactions sent manually, then this obect is passed back when a trasnaction is completed. Note that sequence number is not included in this. For automatic bill payments, this object is ignored.