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_PAYorPAY_NOW. The service answers400 Value null at 'agreementType' failed to satisfy constraintwhen 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 holdsAUTO_PAYagreements and answers an empty list forPAY_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
paymentAgreementIdand apaymentProfilewhosepaymentMethodsare ordered bypriority, starting at 0. The lowest priority is tried first and the next covers if it cannot be charged.