# Add payback plan to trade Adds a payback plan to a trade, which determines when the loan will be paid out to the business and when the business must pay it back. Endpoint: PUT /v1/businesses/{business_id}/trade_credit_line/trades/{trade_id}/payback_plan Version: 1.0 ## Path parameters: - `business_id` (string, required) ID of the business that requested the trade. - `trade_id` (string, required) ID of the trade. ## Request fields (application/json): - `payout_date` (string, required) Date on which the payout is expected to happen. Example: "2020-01-01" - `payback_date` (string, required) Date on which the business is expected to payback the full bullet amount. Generally payout_date + financing_term should be equal to payback_date, so if payout_date moves, payback_date also moves. Example: "2020-01-31" - `customer_fees_expected` (object, required) Object representing the total amount of customer fees expected for this trade. Example: {"value":1000,"unit":"cents","currency":"EUR"} - `customer_fees_expected.value` (integer, required) The amount value Example: 1000 - `customer_fees_expected.currency` (string, required) The currency of the given value Enum: "EUR" - `customer_fees_expected.unit` (string, required) The unit of the given value Enum: "cents" - `partner_transaction_charges_expected` (object, required) Object representing the total amount of transaction charges you expect to collect for the trade. Example: {"value":1000,"unit":"cents","currency":"EUR"} - `other_charges` (object, required) Object representing the total amount of other charges you expect to collect for the trade. Example: {"value":1000,"unit":"cents","currency":"EUR"} - `beneficiary_id` (string,null) ID of the benificiary of the trade Example: "ABCDEF" ## Response 400 fields (application/json): - `title` (string) Example: "Failed to build pagination headers." - `status` (string) Example: "400" - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `detail` (string) Example: "Cannot connect to database." - `code` (string) Example: "build_pagination_headers_failure" ## Response 403 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.source` (object,null) Optional computer-friendly error source description Example: {"message":"is_required","field":"name"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required" - `errors.backtrace` (array,null) Optional array of backtrace lines ## Response 404 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.source` (object,null) Optional computer-friendly error source description Example: {"message":"is_required","field":"name"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required" - `errors.backtrace` (array,null) Optional array of backtrace lines ## Response 409 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.source` (object,null) Optional computer-friendly error source description Example: {"message":"is_required","field":"name"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required" - `errors.backtrace` (array,null) Optional array of backtrace lines