{"openapi":"3.1.0","info":{"title":"AbaNinja Finances API - Payments","version":"3.0.0","x-domain-id":"finances"},"servers":[{"url":"https://api.abaninja.ch","description":"The AbaNinja API server"}],"tags":[{"name":"payments","description":"Manage payments","x-displayName":"Payments"}],"security":[{"ApiToken":[]}],"paths":{"/accounts/{accountUuid}/finances/v2/payments":{"get":{"tags":["payments"],"summary":"Get payments","description":"Retrieve a paginated list of all payments of the account","operationId":"8a2ca2d2a4f0ee4836a8309b47b0b4e4","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"pagination limit","required":false,"schema":{"type":"number","format":"int64","maximum":1000,"minimum":1}},{"name":"page","in":"query","description":"pagination page","required":false,"schema":{"type":"number","format":"int64","default":1,"minimum":1}}],"responses":{"200":{"description":"List of payments","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentLiteResource"}},"status":{"example":200}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"},"post":{"tags":["payments"],"summary":"Create payment","description":"Create a new payment","operationId":"21deb2507b21bdd2f87e074e5894f81d","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"description":"Create payment","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Schema: payment.schema"}}}},"responses":{"201":{"description":"Payment created","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PaymentResource"},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}":{"get":{"tags":["payments"],"summary":"Get payment","description":"Get data of a single payment","operationId":"7c18a0be695232e203e87065878f12f6","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"uuid of the payment to retrieve","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The requested payment","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PaymentResource"},"status":{"example":200}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"},"patch":{"tags":["payments"],"summary":"Update payment","operationId":"f5f4718f17dce304bb058f584bb1e1f4","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"the uuid of the payment to update","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"description":"Create payment","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Schema: payment.schema"}}}},"responses":{"200":{"description":"Payment updated","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PaymentResource"},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"},"delete":{"tags":["payments"],"summary":"Delete payment","description":"Delete the given payment","operationId":"d68e398d007e30862a272208958f6119","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to delete.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment deleted","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions":{"get":{"tags":["payments"],"summary":"Get payment actions","description":"Get a list of applicable actions for the given payments","operationId":"2e391319046d33a6ffed1b1177e627d5","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"uuid of the payment to retrieve actions for","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"A list of applicable actions","content":{"application/json":{"schema":{"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentActionResource"}},"status":{"example":200}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/attachments":{"post":{"tags":["payments"],"summary":"Upload attachment","description":"Upload an attachment for the payment","operationId":"3725c314e23d25413503a14d51813f67","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"the uuid of the payment for which the attachment should be uploaded","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"description":"Attachment file. Allowed are: pdf,png and jpeg files","required":true,"content":{"multipart/form-data":{"schema":{"required":["attachment"],"properties":{"attachment":{"type":"string","format":"binary"}},"type":"object"}}}},"responses":{"201":{"description":"Attachment uploaded","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":201}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/{actionKey}":{"patch":{"tags":["payments"],"summary":"Execute payment action","description":"Execute an action on a payment (e.g., archive, restore, sync, resync, markFinished)","operationId":"finances_update_actions","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"actionKey","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"properties":{"data":{},"message":{"title":"message","type":"string"},"status":{"example":200},"meta":{"title":"meta","type":["object","null"]}},"required":["data","message","status"]}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"required":["detail","type","message","status"]}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-legacy-operation-id":"207eb2dca1f98c051d21700e6b07edd5","x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/archive":{"patch":{"tags":["payments"],"summary":"Archive payment","description":"Archive the given payment","operationId":"6a33e3a7e1a5f689ad96aa143d6e8268","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to archive","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment archived","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/cancel":{"patch":{"tags":["payments"],"summary":"Cancel payment","description":"Cancel the given payment","operationId":"42572e49aebfa769013267db5c56ba37","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to cancel","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment cancelled","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/delete":{"patch":{"tags":["payments"],"summary":"Delete payment","description":"Delete the given payment","operationId":"ffdb7785e12dce1b93cb490add503913","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to delete.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment deleted","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/restore":{"patch":{"tags":["payments"],"summary":"Restore payment","description":"Restore the given payment from the archive","operationId":"73841d88951610e2951e0b03554bbc0f","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to restore","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment restored","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/resync":{"patch":{"tags":["payments"],"summary":"Resync payment","description":"Resend the given payment to the linked Abacus installation","operationId":"fb54d4278f11b4e03da1d91d1e2d4c32","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to resync","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment queued for resync","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/sync":{"patch":{"tags":["payments"],"summary":"Sync payment","description":"Send the given payment to the linked Abacus installation","operationId":"5df280482537e06f70077c193aa9b833","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to restore","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment queued for sync","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/actions/undo_cancel":{"patch":{"tags":["payments"],"summary":"Undo cancel payment","description":"Undo a previously executed cancel of the given payment","operationId":"2069eb6f01fdd0451d6aa485d2f00b55","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"Uuid of the payment to revert the cancellation","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Payment cancellation reverted","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Payment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Payment not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}},"/accounts/{accountUuid}/finances/v2/payments/{paymentUuid}/attachments/{attachmentUuid}":{"delete":{"tags":["payments"],"summary":"delete attachment","description":"delete an attachment of the payment","operationId":"925e7d75f10065d3ec9c59bb79063a4f","parameters":[{"name":"accountUuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"paymentUuid","in":"path","description":"the uuid of the payment which the attachment is connected to","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"attachmentUuid","in":"path","description":"the uuid of the attachment to delete","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"description":"Create payment","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Schema: payment.schema"}}}},"responses":{"200":{"description":"Attachment deleted","content":{"application/json":{"schema":{"properties":{"data":{},"status":{"example":200}}}}}},"400":{"description":"Bad request or validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Bad Request":{"summary":"Bad Request","value":{"detail":[],"type":"validation_error","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Bad request or validation error","status":400}}}}}},"404":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardResponseError"},"examples":{"Not found":{"summary":"Not found","value":{"detail":[],"type":"not_found","requestUuid":"0984aa60-42a0-44b0-80a5-a98f3b8e57d8","path":"/path","message":"Resource not found","status":404}}}}}}},"security":[{"ApiToken":["https://api.abaninja.ch/auth/finances"]}],"x-required-scopes":["finances"],"x-badge":"beta"}}},"components":{"securitySchemes":{"ApiToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token authentication. Create tokens in Settings > API Token."}},"schemas":{"StandardResponse":{"description":"The response format of most endpoints for successful requests","required":["data","message","status"],"properties":{"data":{"title":"data"},"message":{"title":"message","type":"string"},"status":{"title":"status","description":"HTTP status code","type":"integer"},"meta":{"title":"meta","type":["object","null"]}},"type":"object"},"PaymentLiteResource":{"properties":{"uuid":{"type":"string","format":"uuid"},"direction":{"type":"string","enum":["IN","OUT"]},"paymentDate":{"type":"string","format":"date"},"amount":{"type":"number","format":"double"},"status":{"type":"string"}},"type":"object"},"PaymentResource":{"properties":{"uuid":{"type":"string","format":"uuid"},"amount":{"type":"number","format":"double"},"currencyCode":{"type":"string","format":"iso-4217","maxLength":3,"minLength":3},"paymentDate":{"type":"string","format":"date"},"paymentInfo":{"type":["string","null"]},"isPayroll":{"type":"boolean"},"paymentDirection":{"type":"string","enum":["IN","OUT"]},"paymentType":{"type":["string","null"],"enum":["BANK","BITPAY","CARD_TERMINAL","CASH","CASH_ON_DELIVERY","INSTANT_TRANSFER","PAYPAL","TWINT","WIR","VOUCHER_OWN","VOUCHER_THIRD_PARTY","CREDIT_NOTE","CREDIT_NOTE_OFFSET","DISCOUNT","CASH_DISCOUNT","DEBIT_LOSS","DEBIT_CREDIT_CARD","DONATION","CARD_COMMISSIONS","CURRENT_ACCOUNT","PREPAYMENT","PRIVATE"]},"isArchived":{"type":"boolean"},"status":{"type":"string"},"bankAccount":{"$ref":"#/components/schemas/PaymentBankAccountResource"},"addressBankAccount":{"$ref":"#/components/schemas/PaymentAddressBankAccountResource"},"reference":{"type":"string"},"isPaymentOrder":{"type":"boolean"},"processing":{"properties":{"type":{"type":"string","enum":["receipt"]},"taxRate":{"type":["number","null"],"format":"double"},"description":{"type":["string","null"]},"bookingAccountNumber":{"type":["number","null"],"format":"int64"},"bookingContraAccountNumber":{"type":["number","null"],"format":"int64"},"attachmentUuid":{"type":["string","null"],"format":"uuid"},"document":{"properties":{"uuid":{"type":["string","null"],"format":"uuid"},"documentNumber":{"type":["string","null"]},"documentType":{"type":["string","null"]},"documentAmount":{"type":["number","null"],"format":"double"},"documentCurrencyCode":{"type":["string","null"],"format":"iso-4217","maxLength":3,"minLength":3},"addressUuid":{"type":["string","null"],"format":"uuid"},"customerNumber":{"type":["string","null"]},"receiverName":{"type":["string","null"]}},"type":"object"},"sendPaymentConfirmation":{"type":"boolean"},"exchangeRate":{"type":"number","format":"double"},"exchangeCurrencyAmount":{"type":"number","format":"double"},"infoMessage":{"type":["string","null"]}}}},"type":"object"},"StandardResponseError":{"description":"The response format of most endpoints for erronous requests","required":["detail","type","message","status"],"properties":{"detail":{"title":"details"},"type":{"title":"type","type":"string"},"requestUuid":{"title":"requestUuid","type":"string","format":"uuid"},"path":{"title":"path","type":"string"},"message":{"title":"message","type":["string","null"]},"status":{"title":"status","description":"HTTP status code","type":"integer"}},"type":"object"},"PaymentActionResource":{"properties":{"key":{"enum":["cancel","undo_cancel","delete","archive","restore","sync","resync","edit","show","info","activity","unknown"]},"description":{"type":"string"}},"type":"object"},"PaymentBankAccountResource":{"properties":{"uuid":{"type":"string","format":"uuid"},"iban":{"type":["string","null"]}},"type":"object"},"PaymentAddressBankAccountResource":{"properties":{"uuid":{"type":"string","format":"uuid"},"iban":{"type":["string","null"]}},"type":"object"}}}}