Understanding API Endpoints

Each endpoint in PayNearMe’s API performs a unique function to support your business operations. Even though the API supports over thirty-five endpoints, typical integrations primarily only use a few calls. The following table displays the other endpoints you can use in your payment and business flows.

EndpointDescription
/create_orderCreates an order for the specified consumer.
/find_ordersRetrieves all orders for a specified consumer or finds a specific order using its pnm_order_identifier.
/get_feesRetrieves the convenience fees associated with each payment method allowed for a specified order.
/get_smart_tokenRetrieves the unique token used to initialize the PayNearMe JS Library in Embedded Client integrations.
/change_orderGives you the ability to change an order’s specific parameters. These can include the following (see the Orders object for specific name values):
  • Minimum Amount and Currency
  • Order Amount and Currency
  • Order Duration and Expiration Date
  • Customer Attributes
  • Order Description and Annotation
  • Suspension Status and Reason
/suspend_orderPuts the order in a suspended status so that payments cannot be made against it.
/create_push_orderCreates a disbursement order for the specified consumer.
/unsuspend_orderPlaces suspended orders back into an active status so that payments can be made against it.
/cancel_orderCancels the order.
/uncancel_orderRe-activates an order so that payments can be made against it.
/create_payment_methodCreates a payment method and returns a payment_method_identifier.
/find_payment_methodsRetrieves all payment methods associated with either a specified order or customer.
/update_payment_methodGives you the ability to retire a specified payment method by passing in retire_payment_method=true. Payments attempted with retired payment methods are automatically declined.
/make_paymentCreates a transaction using a specified payment_method_identifier.
/simulate_paymentCreates a simulated cash transaction. Use this call for testing and troubleshooting.
/find_paymentRetrieves a specific payment associated with a pnm_payment_identifier.
/refund_paymentReturns funds to the consumer for transactions that have already been processed. For ACH payments, this is after the daily batch transfer to the bank. For cards, the cutoff time is based on the card processing network.
/reverse_paymentThis call will either cancel or refund a payment. The payment will be canceled if it is within the cancellation window; otherwise, it will be refunded.
/cancel_paymentCancels a payment that has not yet been processed. For ACH payments, this is before the daily batch transfer to the bank. For cards, the cutoff time is based on the card processing network.
/schedule_paymentCreates a one-time, future-dated transaction using a specified payment_method_identifier.
/cancel_scheduled_paymentCancels a scheduled payment that has not yet been processed. Cancellation must be made prior to the payment_date.
/find_scheduled_paymentsRetrieves the next scheduled payment for an order. These payments can include recurring payments from an autopay schedule or a future-dated, one-time payment.
/cancel_scheduled_retryCancels the scheduled payment retry for a specified order. This call works for both recurring autopay schedules and future-dated, one-time payment schedules.
/schedule_auto_payCreates a schedule of recurring payments using a specified payment_method_identifier.
/skip_auto_paySkips the next scheduled payment in an autopay schedule.
/update_auto_payUpdates the amount of each auto payment in the schedule.
/cancel_autopayCancels the autopay schedule for the specified order.
/get_retailer_locationsRetrieves a list of retailer locations near the specified coordinates or address. This list can be filtered by the retailer_identifier.
/send_mailCreates a customized email for the specified email address(es).
/send_notificationCreates a specific type of email and/or text notification to the specified user email address or mobile number. Required parameters include the pnm_order_identifier (or site_order_identifier) and one of the following notification types:
  • order_confirmation
  • paid_confirmation
  • user_disbursement_query
/send_smsCreates a customized text message for the specified mobile number(s).
/report_ordersGenerates a report of orders created during a specified timeframe.
/create_userCreate a user record for disbursement orders.
/get_userFind a user record for a disbursement order.
/change_userChange the details of an unverified user record.
/agent_ssoReturns an authenticating token and the SSO URL where the agent can access the Business Portal and/or the specific order.