get_payment_agreements

Payment agreements

Billing.get_payment_agreements(selector=None, **kwargs) → ApiResponse

Lists the payment agreements this account holds.

Query

  • agreementType (string): required. AUTO_PAY or PAY_NOW. The service answers 400 Value null at 'agreementType' failed to satisfy constraint when it is missing. It does not go in the body; this route takes no body.

Returns

ApiResponse with paymentAgreements, a list. An account that pays automatically holds AUTO_PAY agreements and answers an empty list for PAY_NOW, and the reverse, so an empty answer here means the account holds none of that type rather than that the call failed.

Each agreement carries a paymentAgreementId and a paymentProfile whose paymentMethods are ordered by priority, starting at 0. The lowest priority is tried first and the next covers if it cannot be charged.