post
https://test-api.bill.pro/api/v2/profiles//orders//replace_card
Moves the order onto another of the customer's saved cards, and charges anything already due to it. The new card becomes the order's active card.
You can replace the card when the order saves cards, has a successful or scheduled payment, and its status isn't complete, cancelled, paused or rejected.
This can take money. In the same call, BillPro charges every payment that's due and unpaid: each scheduled payment that failed, was rejected, or passed its date without being collected.
- Two or more due payments are merged into one payment for the total. The originals are marked
merged. - The payment is charged now. This happens whatever the profile's "Action when requesting a card replacement" setting says.
- If nothing is due, the card is replaced and nothing is charged.
result.successfulistrueandpaymentisnull. - A declined card returns
200withresult.successful: false. The new card stays on the order.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…