# Spense Partner APIs Version: v1 ## Servers Production API ``` https://api.spensepay.com/partner ``` ## Security ### HTTPBasic Type: http Scheme: basic ### OAuth2ClientCredentials Type: oauth2 ## Download OpenAPI description [Spense Partner APIs](https://developer.spensepay.com/_bundle/apis/partner.yaml) ## Authentication ### Get OAuth2 access token - [POST /auth/token](https://developer.spensepay.com/apis/partner/authentication/login.md) ### Verify that the bearer token is valid. - [GET /auth/ping](https://developer.spensepay.com/apis/partner/authentication/ping.md) ### Get the list of organizations you have access to. - [GET /auth/organizations](https://developer.spensepay.com/apis/partner/authentication/get_organizations.md): Get the list of organizations the user has access to. ## Settlements ### Generate Csv - [GET /settlements/generate_csv](https://developer.spensepay.com/apis/partner/settlements/generate_csv.md): Generate a CSV file for the given date range and format. Remember: use the header X-Organization-Id with the organization ID if you are using a partner token which has access to multiple organizations. ## Payment Methods ### Get Payment Methods - [GET /payment-methods](https://developer.spensepay.com/apis/partner/payment-methods/get_payment_methods.md): Get a list of available payment methods, which can be used to specify which payment method to use when creating a payment. The list of payment methods may change over time, so it is recommended to fetch this list dynamically when creating a payment, to allow the user select the payment method they want to use. The list of payment methods is not guaranteed to be exhaustive, and special configuration is needed for most of the possible methods. The default method which is a payment link, will always be available with the string ID 000000000000000000000000. ### Resend To Payment Method - [POST /payment-methods/resend](https://developer.spensepay.com/apis/partner/payment-methods/resend_to_payment_method.md): Attempt to re-send the payment method for a payment.This will not create a new payment, but re-send the payment to the specified payment method. This can be used many times and have different behaviour depending on the type of method used. - If a payment link method is used, the payment link will be sent again. - If a terminal method is used, the payment will be sent to the specified terminal. - If a invoice method is used, we will send a invoice to the specified invoice type. Rely on webhooks to get notified about the result of the action.