Pricing Templates
2 endpoints. Base URL https://api.paymentsonline.io, sandbox https://api.sandbox-paymentsonline.io.
Every request needs payments-api-key and payments-account.
/v1/pricing-templatesList all Pricing Templates
Returns a list of Pricing Templates. The Pricing Templates are sorted with the most recently created appearing first.
Query parameters
typestring (card | ach_debit | card_present | eft_debit)optionalString indicating the type to filter the result by.
offsetnumberoptionalThe (zero-based) offset of the first item in the collection to return.
limitnumberoptionalThe maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used.
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Responses
200PaginatedDto | object
has_morebooleanrequiredWhether or not there are more elements available after this set. If
false, this set comprises the end of the list.limitnumberoptionalThe maximum number of entries to return. If the value exceeds the maximum, then the maximum value will be used.
offsetnumberoptionalThe (zero-based) offset of the first item in the collection to return.
totalnumberoptionalThe total items count.
itemsarray of PricingTemplaterequired
/v1/pricing-templates/{id}Get a Pricing Template
Retrieves the details of an existing Pricing Template.
Path parameters
idstringrequired
Header parameters
payments-accountstringrequiredThe id of the Paydude Account (usually starting with the prefix
acct_) that the request is performed on behalf of. Must be a merchant (connected) account id, not the partner account you signed up with; a partner account passes GET /v1/accounts and then fails with "not enabled for this account" on the first payment call.
Responses
200PricingTemplate
account_idstringrequiredThe ID of the Account associated with this pricing template.
account_monthly_feenumberrequiredThe account monthly fee configured for this pricing template, in currency minor units.
account_monthly_minimum_feenumberrequiredThe account monthly minimum fee configured for this pricing template, in currency minor units.
ach_debitDebitFeeTemplateoptionalIf this is an
ach_debitpricing template, this hash contains the direct debit specific pricing details.cardCardChargeFeeTemplateoptionalIf this is a
cardpricing template, this hash contains the card specific pricing details.card_presentCardPresentChargeFeeTemplateoptionalIf this is a
card_presentpricing template, this hash contains the card specific pricing details.created_atstring date-timerequiredTime at which the object was created.
currencystring (aud | cad | dkk | eur | hkd | jpy | nzd | nok | …)requiredThe currency this pricing template applies to.
eft_debitDebitFeeTemplateoptionalIf this is an
eft_debitpricing template, this hash contains the direct debit specific pricing details.idstringrequiredUnique identifier for the object.
namestringrequiredThe name of this pricing template.
payment_method_typestring (card | ach_debit | card_present | eft_debit)requiredThe payment method type this pricing template applies to.
statusstring (active | archived | pending)requiredThe status of this pricing template
updated_atstring date-timerequiredTime at which the object was last updated.
