account_profiles


Account billing profiles for the account, Currently PayPal or Credit Card are type options. We run all credit cards via 2 levels of fraud screening before storing at our processor. We never have access to the full credit card number after it is posted.


Available HTTP and Response Types
DELETE GET POST PUT | JSON

5 Methods


  • DELETE
    https://api.pagely.com/ v1 / account_profiles /single

    Available To Reseller Account

    Description

    Remove a billing profile from an account.

    Sample Response


      Required Params

      id int profile id
  • GET
    https://api.pagely.com/ v1 / account_profiles /all

    Available To Reseller Account

    Description

    Get all billing profiles for an account

    Sample Response

    {"result":2,"count":1,"limit":1,"offset":0,"objects":[{"id":"5400","active":"1","status":"0","ignore_failed":"0","account_id":"3333","name":"Profile - 08-18-12","type":"cc","type_desc":"XXXX-XXXX-XXXX-1111","cc_first_name":"John","cc_last_name":"Doe","cc_address":"123 Main street","cc_city":"SAN FRANCISCO","cc_state":"","cc_country":"US","cc_zip":"94122","cc_exp_month":"01","cc_exp_year":"2015","authnet_cim_profile":"1112223","authnet_cim_payment":"111222333","pp_email":"","pp_approvalkey":null,"pp_endate":"0","pp_maxtotal":"0.00","pp_currenttotal":"0.00","pp_senderEmail":null,"failed_attempts":"0","last_alert":"0","date_last_failed":"0","date_added":"1345337669","date_updated":"1345337669","uid":""}]}

      Required Params

      account_id int
      domain_ud int

      Optional Params

      limit int 25
      offset int 0
      order_by string id
      order_dir string DESC
      reseller_id int API-KEY selects this automatically
  • GET
    https://api.pagely.com/ v1 / account_profiles /single

    Available To Reseller Account

    Description

    Get a single billing profile

    Sample Response

    {"result":2,"count":1,"limit":1,"offset":0,"objects":[{"id":"5400","active":"1","status":"0","ignore_failed":"0","account_id":"3333","name":"Profile - 08-18-12","type":"cc","type_desc":"XXXX-XXXX-XXXX-1111","cc_first_name":"John","cc_last_name":"Doe","cc_address":"123 Main street","cc_city":"SAN FRANCISCO","cc_state":"","cc_country":"US","cc_zip":"94122","cc_exp_month":"01","cc_exp_year":"2015","authnet_cim_profile":"1112223","authnet_cim_payment":"111222333","pp_email":"","pp_approvalkey":null,"pp_endate":"0","pp_maxtotal":"0.00","pp_currenttotal":"0.00","pp_senderEmail":null,"failed_attempts":"0","last_alert":"0","date_last_failed":"0","date_added":"1345337669","date_updated":"1345337669","uid":""}]}

      Required Params

      id int
  • POST
    https://api.pagely.com/ v1 / account_profiles /action

    Available To Reseller Account

    Description

    Preform an action on a billing profile

    Sample Response


      Required Params

      action string enable|disable
  • PUT
    https://api.pagely.com/ v1 / account_profiles /single

    Available To Reseller Account

    Description

    Add a new billing profile for an account. If type is cc, all address and card data fields are required. If type is paypal, a redirect url is required and the user will be redirected to this url (typically your cart) with the following to query string if successful: <redirect_url>?paypal_result=success&paypal_message=complete

    Sample Response

    {"result":2,"id":1111,"object":{"id":"1111","active":"1","status":"0","ignore_failed":"0","account_id":"3333","name":"Profile - 08-18-12","type":"cc","type_desc":"XXXX-XXXX-XXXX-1111","cc_first_name":"mike","cc_last_name":"deee","cc_address":"123 main street","cc_city":"las vegas","cc_state":"AL","cc_country":"US","cc_zip":"89107","cc_exp_month":"1","cc_exp_year":"2014","authnet_cim_profile":"1122121","authnet_cim_payment":"1112222","pp_email":"","pp_approvalkey":null,"pp_endate":"0","pp_maxtotal":"0.00","pp_currenttotal":"0.00","pp_senderEmail":null,"failed_attempts":"0","last_alert":"0","date_last_failed":"0","date_added":"1345345897","date_updated":"1345345897","uid":""},"message":"Billing Profile has been created."}

      Required Params

      account_id int
      type string paypal|cc

      Optional Params

      cc_address string req if type cc
      cc_ccv int req if type cc
      cc_city string req if type cc
      cc_country string req if type cc
      cc_exp_month int req if type cc
      cc_exp_year int req if type cc
      cc_number int req if type cc
      cc_state string req if type cc
      cc_zip string req if type cc
      first_name string req if type cc
      last_name string req if type cc
      name string My Visa
      promocode int may submit promocode with profile for discount on plan
      redirect_url string req if type paypal | url to redirect the user back to after approving at paypal