{"items":[{"type":"link","label":"Spense Payment Management","link":"/apis/payment-management","routeSlug":"/apis/payment-management","content":{"contentType":"overview","meta":{"name":"Spense Payment Management"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"payment-management.json","url":"/_bundle/apis/payment-management.json?download"},{"kind":"download","label":"payment-management.yaml","url":"/_bundle/apis/payment-management.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Spense Payment Management (v1)","showPageActions":true}],"sectionId":"/apis/payment-management"}]}]}},{"label":"Create Payment","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/create_payment","routeSlug":"/apis/payment-management/other/create_payment","metadata":{"seo":{"title":"Create Payment","description":"Create Payment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"create_payment","name":"Create Payment","isWebhook":false,"pointer":"/paths/~1api~1payments/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Payment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:create"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRequest"}},"schemaId":"components/schemas/LegacyPaymentRequest","pointer":"/paths/~1api~1payments/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/payments","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:create"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRequest"}},"responseCodes":["200","422"],"pointer":"/api/payments","href":"other/create_payment","openApiOperationId":"create_payment","summary":"Create Payment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/LegacyPaymentRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentResponse"}},"schemaId":"components/schemas/LegacyPaymentResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyPaymentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/create_payment"}],"panels":[]}]},"httpPath":"/api/payments"},{"label":"Upload Document","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/upload_document","routeSlug":"/apis/payment-management/other/upload_document","metadata":{"seo":{"title":"Upload Document","description":"Upload Document"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"upload_document","name":"Upload Document","isWebhook":false,"pointer":"/paths/~1api~1payments~1uploadDocument/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Upload Document","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:update"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1uploadDocument/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"components/schemas/Body_upload_document"}},"schemaId":"components/schemas/Body_upload_document","pointer":"/paths/~1api~1payments~1uploadDocument/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/payments/uploadDocument","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:update"]}],"requestBody":{"multipart/form-data":{"schemaId":"components/schemas/Body_upload_document"}},"responseCodes":["200","422"],"pointer":"/api/payments/uploadDocument","href":"other/upload_document","openApiOperationId":"upload_document","summary":"Upload Document"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/Body_upload_document","mediaTypes":["multipart/form-data"],"mediaTypeSchemas":{"multipart/form-data":{"schemaId":"components/schemas/Body_upload_document"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyDocumentUploadResponse"}},"schemaId":"components/schemas/LegacyDocumentUploadResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1uploadDocument/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyDocumentUploadResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyDocumentUploadResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/upload_document"}],"panels":[]}]},"httpPath":"/api/payments/uploadDocument"},{"label":"Delete Document","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/delete_document","routeSlug":"/apis/payment-management/other/delete_document","metadata":{"seo":{"title":"Delete Document","description":"Delete Document"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"delete_document","name":"Delete Document","isWebhook":false,"pointer":"/paths/~1api~1payments~1uploadDocument~1{payflow_id}~1{document_id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Document","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:update"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_27","required":true},{"name":"document_id","in":"path","schemaId":"schema_28","required":true}],"pointer":"/paths/~1api~1payments~1uploadDocument~1{payflow_id}~1{document_id}/delete/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1uploadDocument~1{payflow_id}~1{document_id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/payments/uploadDocument/{payflow_id}/{document_id}","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_27"},{"name":"document_id","in":"path","required":true,"schemaId":"schema_28"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:update"]}],"responseCodes":["200","422"],"pointer":"/api/payments/uploadDocument/{payflow_id}/{document_id}","href":"other/delete_document","openApiOperationId":"delete_document","summary":"Delete Document"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_29"}},"schemaId":"schema_29"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1uploadDocument~1{payflow_id}~1{document_id}/delete/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_29","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_29"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/delete_document"}],"panels":[]}]},"httpPath":"/api/payments/uploadDocument/{payflow_id}/{document_id}"},{"label":"Delete Payment","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/delete_payment","routeSlug":"/apis/payment-management/other/delete_payment","metadata":{"seo":{"title":"Delete Payment","description":"Delete Payment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"delete_payment","name":"Delete Payment","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Payment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:update"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_27","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}/delete/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/payments/{payflow_id}","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_27"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:update"]}],"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}","href":"other/delete_payment","openApiOperationId":"delete_payment","summary":"Delete Payment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_30"}},"schemaId":"schema_30"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}/delete/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_30","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_30"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/delete_payment"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}"},{"label":"Refund Payment","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/refund_payment","routeSlug":"/apis/payment-management/other/refund_payment","metadata":{"seo":{"title":"Refund Payment","description":"Refund Payment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"refund_payment","name":"Refund Payment","isWebhook":false,"pointer":"/paths/~1api~1refund/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Refund Payment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:update"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1refund/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRefundRequest"}},"schemaId":"components/schemas/LegacyPaymentRefundRequest","pointer":"/paths/~1api~1refund/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/refund","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:update"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRefundRequest"}},"responseCodes":["200","422"],"pointer":"/api/refund","href":"other/refund_payment","openApiOperationId":"refund_payment","summary":"Refund Payment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/LegacyPaymentRefundRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRefundRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRefundResponse"}},"schemaId":"components/schemas/LegacyPaymentRefundResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1refund/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyPaymentRefundResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentRefundResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/refund_payment"}],"panels":[]}]},"httpPath":"/api/refund"},{"label":"Get Payment Status","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/get_payment_status","routeSlug":"/apis/payment-management/other/get_payment_status","metadata":{"seo":{"title":"Get Payment Status","description":"Get Payment Status"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get_payment_status","name":"Get Payment Status","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}~1paymentStatus/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Payment Status","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:read"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_27","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1paymentStatus/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1paymentStatus/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/payments/{payflow_id}/paymentStatus","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_27"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:read"]}],"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}/paymentStatus","href":"other/get_payment_status","openApiOperationId":"get_payment_status","summary":"Get Payment Status"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentStatusResponse"}},"schemaId":"components/schemas/LegacyPaymentStatusResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1paymentStatus/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyPaymentStatusResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyPaymentStatusResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/get_payment_status"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}/paymentStatus"},{"label":"Create Installment","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/create_installment","routeSlug":"/apis/payment-management/other/create_installment","metadata":{"seo":{"title":"Create Installment","description":"Create Installment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"create_installment","name":"Create Installment","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1create/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create Installment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:read"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_31","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1create/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1create/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyInstallment"}},"schemaId":"components/schemas/LegacyInstallment","pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1create/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/payments/{payflow_id}/installments/create","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_31"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:read"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/LegacyInstallment"}},"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}/installments/create","href":"other/create_installment","openApiOperationId":"create_installment","summary":"Create Installment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/LegacyInstallment","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyInstallment"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyInstallmentResponse"}},"schemaId":"components/schemas/LegacyInstallmentResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1create/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyInstallmentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyInstallmentResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/create_installment"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}/installments/create"},{"label":"Get Installment","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/get_installment","routeSlug":"/apis/payment-management/other/get_installment","metadata":{"seo":{"title":"Get Installment","description":"Get Installment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"get_installment","name":"Get Installment","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get Installment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:read"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_31","required":true},{"name":"installment_id","in":"path","schemaId":"schema_32","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/payments/{payflow_id}/installments/{installment_id}","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_31"},{"name":"installment_id","in":"path","required":true,"schemaId":"schema_32"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:read"]}],"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}/installments/{installment_id}","href":"other/get_installment","openApiOperationId":"get_installment","summary":"Get Installment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyInstallmentResponse"}},"schemaId":"components/schemas/LegacyInstallmentResponse"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/get/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/LegacyInstallmentResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/LegacyInstallmentResponse"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/get_installment"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}/installments/{installment_id}"},{"label":"Update Installment","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/update_installment","routeSlug":"/apis/payment-management/other/update_installment","metadata":{"seo":{"title":"Update Installment","description":"Update Installment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"update_installment","name":"Update Installment","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update Installment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:read"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_31","required":true},{"name":"installment_id","in":"path","schemaId":"schema_32","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/put/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyUpdateInstallmentRequest"}},"schemaId":"components/schemas/LegacyUpdateInstallmentRequest","pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/put/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/payments/{payflow_id}/installments/{installment_id}","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_31"},{"name":"installment_id","in":"path","required":true,"schemaId":"schema_32"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:read"]}],"requestBody":{"application/json":{"schemaId":"components/schemas/LegacyUpdateInstallmentRequest"}},"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}/installments/{installment_id}","href":"other/update_installment","openApiOperationId":"update_installment","summary":"Update Installment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/LegacyUpdateInstallmentRequest","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyUpdateInstallmentRequest"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}},"schemaId":"schema_33"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/put/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_33","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/update_installment"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}/installments/{installment_id}"},{"label":"Delete Installment","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/payment-management/other/delete_installment","routeSlug":"/apis/payment-management/other/delete_installment","metadata":{"seo":{"title":"Delete Installment","description":"Delete Installment"}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"delete_installment","name":"Delete Installment","isWebhook":false,"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete Installment","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"security","requirements":[{"schemes":[{"name":"OAuth2ClientCredentials","scopes":["organization:payflow:read"],"type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"payflow_id","in":"path","schemaId":"schema_31","required":true},{"name":"installment_id","in":"path","schemaId":"schema_32","required":true}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/delete/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"X-Organization-Id","in":"header","schemaId":"schema_26","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required."}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/payments/{payflow_id}/installments/{installment_id}","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[{"name":"payflow_id","in":"path","required":true,"schemaId":"schema_31"},{"name":"installment_id","in":"path","required":true,"schemaId":"schema_32"}],"query":[],"querystring":[],"header":[{"name":"X-Organization-Id","in":"header","required":false,"schemaId":"schema_26"}],"cookie":[]},"security":[{"schemes":[{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}],"scopes":["organization:payflow:read"]}],"responseCodes":["200","422"],"pointer":"/api/payments/{payflow_id}/installments/{installment_id}","href":"other/delete_installment","openApiOperationId":"delete_installment","summary":"Delete Installment"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}},"schemaId":"schema_33"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/~1api~1payments~1{payflow_id}~1installments~1{installment_id}/delete/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_33","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/delete_installment"}],"panels":[]}]},"httpPath":"/api/payments/{payflow_id}/installments/{installment_id}"},{"type":"group","label":"Webhooks","link":"/apis/payment-management/webhooks","routeSlug":"/apis/payment-management/webhooks","items":[{"label":"Webhook: Payment Update","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":true,"type":"link","link":"/apis/payment-management/webhooks/legacy_payment_updatelegacy_payment_update_post","routeSlug":"/apis/payment-management/webhooks/legacy_payment_updatelegacy_payment_update_post","metadata":{"seo":{"title":"Webhook: Payment Update","description":"A webhook that is called when a payment is updated. This can be used to update your internal systems, or to trigger other actions."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"legacy_payment_updatelegacy_payment_update_post","name":"Webhook: Payment Update","isWebhook":true,"pointer":"/paths/legacy-payment-update/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Webhook: Payment Update","isWebhook":true,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"A webhook that is called when a payment is updated. This can be used to\nupdate your internal systems, or to trigger other actions.\n\nTo use this webhook, you need to pass in the URL when creating the payment."},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentWebhookPayload"}},"schemaId":"components/schemas/LegacyPaymentWebhookPayload","pointer":"/paths/legacy-payment-update/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"webhook","method":"POST","path":"legacy-payment-update","servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[],"requestBody":{"application/json":{"schemaId":"components/schemas/LegacyPaymentWebhookPayload"}},"responseCodes":["200","422"],"pointer":"legacy-payment-update","href":"webhooks/legacy_payment_updatelegacy_payment_update_post","openApiOperationId":"legacy_payment_updatelegacy_payment_update_post","summary":"Webhook: Payment Update"},"isWebhook":true,"hideReplay":false,"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"schemaId":"components/schemas/LegacyPaymentWebhookPayload","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/LegacyPaymentWebhookPayload"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful Response","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}},"schemaId":"schema_33"},{"code":"422","description":"Validation Error","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}},"schemaId":"components/schemas/HTTPValidationError"}],"pointer":"/paths/legacy-payment-update/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"schema_33","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_33"}}},{"code":"422","schemaId":"components/schemas/HTTPValidationError","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/HTTPValidationError"}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/webhooks/legacy_payment_updatelegacy_payment_update_post"}],"panels":[]}]},"httpPath":"legacy-payment-update"}],"content":{"contentType":"group","meta":{"name":"Webhooks"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Webhooks","showPageActions":true}],"panels":[{"children":[{"kind":"group-items","title":"Webhooks","titleTranslationKey":"webhooks","items":[{"title":"legacy-payment-update","summary":"Webhook: Payment Update","prefix":{"name":"post","color":"post"},"badges":[],"link":"/webhooks/legacy_payment_updatelegacy_payment_update_post","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/Body_upload_document":{"id":"components/schemas/Body_upload_document","kind":"json-schema","title":"Body_upload_document","data":{"properties":{"id":{"anyOf":[{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},{"type":"string","format":"uuid"}],"title":"Id"},"file":{"type":"string","format":"binary","title":"File"},"name":{"type":"string","title":"Name","default":""},"description":{"type":"string","title":"Description","default":""}},"type":"object","required":["id","file"],"title":"Body_upload_document"}},"components/schemas/HTTPValidationError":{"id":"components/schemas/HTTPValidationError","kind":"json-schema","title":"HTTPValidationError","data":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}},"components/schemas/InstallmentsMode":{"id":"components/schemas/InstallmentsMode","kind":"json-schema","title":"InstallmentsMode","data":{"type":"string","enum":["pay-down","subscription"],"title":"InstallmentsMode"}},"components/schemas/InvoiceLine":{"id":"components/schemas/InvoiceLine","kind":"json-schema","title":"InvoiceLine","data":{"properties":{"description":{"type":"string","title":"Description"},"grossUnitPrice":{"type":"number","title":"Grossunitprice"},"netUnitPrice":{"type":"number","title":"Netunitprice"},"quantity":{"type":"number","title":"Quantity"},"vatAmount":{"type":"number","title":"Vatamount"},"taxRate":{"type":"number","title":"Taxrate"}},"type":"object","required":["description","grossUnitPrice","netUnitPrice","quantity","vatAmount","taxRate"],"title":"InvoiceLine"}},"components/schemas/LegacyAddress":{"id":"components/schemas/LegacyAddress","kind":"json-schema","title":"LegacyAddress","data":{"properties":{"careOf":{"type":"string","title":"Careof","default":""},"street":{"type":"string","title":"Street","default":""},"secondary":{"type":"string","title":"Secondary","default":""},"postalCode":{"type":"string","title":"Postalcode","default":""},"city":{"type":"string","title":"City","default":""},"country":{"type":"string","title":"Country","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"DEPRECATED: Use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"countryCode"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" instead. This field will be removed in a future version."},"children":[]}]}]}]},"countryCode":{"anyOf":[{"type":"string","pattern":"^\\w{2}$"},{"type":"null"}],"title":"Countrycode","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"ISO 3166-1 alpha-2 country code (2-letter code), e.g. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"NO"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"SE"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"US"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]}},"type":"object","title":"LegacyAddress"}},"components/schemas/LegacyBehaviour":{"id":"components/schemas/LegacyBehaviour","kind":"json-schema","title":"LegacyBehaviour","data":{"properties":{"redirectSuccessUrl":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Redirectsuccessurl","description":"If set, the user will be redirected to this URL after the payment is successful."},"redirectCancelUrl":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Redirectcancelurl","description":"If set, the user will be redirected to this URL after the payment is cancelled. A payment is cancelled if the user clicks the cancel button."},"cancelButtonText":{"type":"string","title":"Cancelbuttontext","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Text for the cancel button, only visible if "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"redirectCancelUrl"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is set."},"children":[]}]}]}],"default":"Cancel"}},"type":"object","title":"LegacyBehaviour"}},"components/schemas/LegacyCallback":{"id":"components/schemas/LegacyCallback","kind":"json-schema","title":"LegacyCallback","data":{"properties":{"url":{"type":"string","title":"This webhook URL will be called when the payment is completed successfully.","default":"","deprecated":true},"status_update_url":{"type":"string","title":"This webhook URL will be called when the status of the payment changes. It is triggered by any status update, including when the payment is completed successfully.","default":""},"terminal_failure_url":{"type":"string","title":"Currently not implemented. We might add this functionality in the future.","default":""},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Will be passed to the webhook URLs in the `Authorization` header."}},"type":"object","title":"LegacyCallback"}},"components/schemas/LegacyCommunication":{"id":"components/schemas/LegacyCommunication","kind":"json-schema","title":"LegacyCommunication","data":{"properties":{"send_payment_link":{"type":"boolean","title":"Send Payment Link","default":true},"send_payment_reminder":{"type":"boolean","title":"Send Payment Reminder","default":true}},"type":"object","title":"LegacyCommunication"}},"components/schemas/LegacyCustomerOrganization":{"id":"components/schemas/LegacyCustomerOrganization","kind":"json-schema","title":"LegacyCustomerOrganization","data":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"phone":{"$ref":"#/components/schemas/LegacyPhoneNumber"},"organizationName":{"type":"string","title":"Organizationname","default":""},"organizationNumber":{"type":"string","title":"Organizationnumber","default":""},"customerNumber":{"type":"string","title":"Customernumber","default":""},"billingAddress":{"$ref":"#/components/schemas/LegacyAddress"},"type":{"title":"Type","default":"organization","enum":["organization"]}},"type":"object","title":"LegacyCustomerOrganization"}},"components/schemas/LegacyCustomerPerson":{"id":"components/schemas/LegacyCustomerPerson","kind":"json-schema","title":"LegacyCustomerPerson","data":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"phone":{"$ref":"#/components/schemas/LegacyPhoneNumber"},"firstName":{"type":"string","title":"Firstname","default":""},"lastName":{"type":"string","title":"Lastname","default":""},"customerNumber":{"type":"string","title":"Customernumber","default":""},"billingAddress":{"$ref":"#/components/schemas/LegacyAddress"},"type":{"title":"Type","default":"person","enum":["person"]}},"type":"object","title":"LegacyCustomerPerson"}},"components/schemas/LegacyDocumentUploadResponse":{"id":"components/schemas/LegacyDocumentUploadResponse","kind":"json-schema","title":"LegacyDocumentUploadResponse","data":{"properties":{"id":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","name","description","url"],"title":"LegacyDocumentUploadResponse"}},"components/schemas/LegacyInstallment":{"id":"components/schemas/LegacyInstallment","kind":"json-schema","title":"LegacyInstallment","data":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"grossAmount":{"type":"number","exclusiveMinimum":0,"title":"Grossamount"},"items":{"items":{"$ref":"#/components/schemas/LegacyPaymentItem"},"type":"array","title":"Items"}},"type":"object","required":["date","grossAmount"],"title":"LegacyInstallment"}},"components/schemas/LegacyInstallmentResponse":{"id":"components/schemas/LegacyInstallmentResponse","kind":"json-schema","title":"LegacyInstallmentResponse","data":{"properties":{"id":{"type":"string","title":"Id"},"date":{"type":"string","format":"date","title":"Date"},"type":{"$ref":"#/components/schemas/Type"},"grossAmount":{"type":"number","title":"Grossamount"},"status":{"$ref":"#/components/schemas/PaymentStatus"},"numTried":{"type":"integer","title":"Numtried"},"successfullyChargedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Successfullychargedat"},"numFailed":{"type":"integer","title":"Numfailed"},"lastFailedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastfailedat"}},"type":"object","required":["id","date","type","grossAmount","status","numTried","successfullyChargedAt","numFailed","lastFailedAt"],"title":"LegacyInstallmentResponse"}},"components/schemas/LegacyInstallmentUpdate":{"id":"components/schemas/LegacyInstallmentUpdate","kind":"json-schema","title":"LegacyInstallmentUpdate","data":{"properties":{"installmentId":{"type":"string","title":"Installmentid"},"installmentStatus":{"$ref":"#/components/schemas/PaymentStatus"}},"type":"object","required":["installmentId","installmentStatus"],"title":"LegacyInstallmentUpdate"}},"components/schemas/LegacyObject":{"id":"components/schemas/LegacyObject","kind":"json-schema","title":"LegacyObject","data":{"properties":{"type":{"$ref":"#/components/schemas/LegacyObjectType"},"numberPlate":{"type":"string","title":"Numberplate","default":""},"brand":{"type":"string","title":"Brand","default":""},"model":{"type":"string","title":"Model","default":""},"color":{"type":"string","title":"Color","default":""},"year":{"type":"string","title":"Year","default":""},"vinNumber":{"type":"string","title":"Vinnumber","default":""}},"type":"object","required":["type"],"title":"LegacyObject"}},"components/schemas/LegacyObjectType":{"id":"components/schemas/LegacyObjectType","kind":"json-schema","title":"LegacyObjectType","data":{"type":"string","enum":["","newCar","tradeInCAR"],"title":"LegacyObjectType"}},"components/schemas/LegacyOrder":{"id":"components/schemas/LegacyOrder","kind":"json-schema","title":"LegacyOrder","data":{"properties":{"orderNumber":{"type":"string","title":"Ordernumber","default":""},"objects":{"items":{"$ref":"#/components/schemas/LegacyObject"},"type":"array","title":"Objects","default":[]}},"type":"object","title":"LegacyOrder"}},"components/schemas/LegacyPayment":{"id":"components/schemas/LegacyPayment","kind":"json-schema","title":"LegacyPayment","data":{"properties":{"currency":{"type":"string","title":"Currency","default":""},"totalGrossAmount":{"type":"number","exclusiveMinimum":0,"title":"Totalgrossamount"},"totalNetAmount":{"type":"number","exclusiveMinimum":0,"title":"Totalnetamount"},"installments":{"anyOf":[{"items":{"$ref":"#/components/schemas/LegacyInstallment"},"type":"array"},{"type":"null"}],"title":"Installments","description":"Split the total gross amount of the payment into installments, which will be automatically debited at the specified dates."},"installmentsMode":{"anyOf":[{"$ref":"#/components/schemas/InstallmentsMode"},{"type":"null"}],"x-do-not-dereference":true,"x-enumNames":["PAY_DOWN","SUBSCRIPTION"]},"items":{"items":{"$ref":"#/components/schemas/LegacyPaymentItem"},"type":"array","title":"Items","default":[]},"dueDate":{"type":"string","format":"date","title":"Duedate"},"paymentRef":{"type":"string","title":"Paymentref","default":""},"invoiceNumber":{"type":"string","title":"Invoicenumber","default":""},"customerReference":{"type":"string","title":"Customerreference","description":"Customer number associated with the organization. For customer reference, used customerReference in payment field","default":""},"invoiceComments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoicecomments","description":"Comments to be added to the invoice. These will be visible to the customer."},"profileId":{"anyOf":[{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},{"type":"null"}],"title":"Profileid","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The ID of the payment profile that the payment shall be created for. If the organization has two or more payment profiles, either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"profileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"paymentDepartment"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be specified. We highly recommend to always specify either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"profileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"paymentDepartment"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"paymentDepartment":{"anyOf":[{"$ref":"#/components/schemas/PaymentDepartment"},{"type":"null"}],"description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This field can be used as a simpler alternative for specifying the payment profile that the payment shall be created for. If "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"profileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is not specified and the organization has a payment profile for the department which is specified in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"paymentDepartment"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", that payment profile will be used. If the organization has two or more payment profiles, either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"profileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"paymentDepartment"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" must be specified. We highly recommend to always specify either "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"profileId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"paymentDepartment"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]}]},"internalRef":{"type":"string","title":"Internalref","default":""},"externalRef":{"type":"string","title":"Externalref","default":""}},"type":"object","required":["totalGrossAmount","totalNetAmount","dueDate"],"title":"LegacyPayment"}},"components/schemas/LegacyPaymentItem":{"id":"components/schemas/LegacyPaymentItem","kind":"json-schema","title":"LegacyPaymentItem","data":{"properties":{"description":{"type":"string","title":"Description","default":""},"grossUnitPrice":{"type":"number","title":"Grossunitprice","default":0},"netUnitPrice":{"type":"number","title":"Netunitprice","default":0},"grossTotalPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grosstotalprice","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If set, this will override the total price calculated from grossUnitPrice * quantity."},"children":[]}]}]}]},"netTotalPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Nettotalprice","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"If set, this will override the total price calculated from netUnitPrice * quantity"},"children":[]}]}]}]},"vatAmount":{"type":"number","title":"Vatamount","default":0},"quantity":{"type":"number","title":"Quantity","default":0},"taxRate":{"type":"number","title":"Taxrate","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The tax rate in percent, e.g. 25 for 25%% or 20.9 for 20.9%"},"children":[]}]}]}],"default":0},"discountRate":{"type":"number","title":"Discountrate","default":0},"lineType":{"$ref":"#/components/schemas/PaymentCostLineType"}},"type":"object","title":"LegacyPaymentItem"}},"components/schemas/LegacyPaymentLinksResponse":{"id":"components/schemas/LegacyPaymentLinksResponse","kind":"json-schema","title":"LegacyPaymentLinksResponse","data":{"properties":{"gui":{"type":"string","title":"Gui","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The path of the payment link (without the domain). This property is deprecated and exists only to support legacy customer integrations. You should always use "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"longGui"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Specifically, if you combine the path provided in "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"gui"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" with a known Spense payment link domain (e. g. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"pay.spense.no"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"), this might result in broken payment links or parts of the payflow functionality not working. One scenario where this can happen is when Spense has configured a custom payment link domain for the affected organization. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"longGui"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" will always use the payment link domain that is configured at the time of payment creation."},"children":[]}]}]}],"default":"","deprecated":true},"longGui":{"type":"string","title":"Longgui","description":"The full URL of the payment link which is sent to the user.","default":""}},"type":"object","title":"LegacyPaymentLinksResponse"}},"components/schemas/LegacyPaymentRefundRequest":{"id":"components/schemas/LegacyPaymentRefundRequest","kind":"json-schema","title":"LegacyPaymentRefundRequest","data":{"properties":{"crossPayment":{"anyOf":[{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},{"type":"string","format":"uuid"}],"title":"Crosspayment"},"currency":{"type":"string","title":"Currency"},"totalGrossAmount":{"type":"number","title":"Totalgrossamount"},"totalNetAmount":{"type":"number","title":"Totalnetamount"},"invoiceLines":{"items":{"$ref":"#/components/schemas/InvoiceLine"},"type":"array","title":"Invoicelines","default":[]}},"type":"object","required":["crossPayment","currency","totalGrossAmount","totalNetAmount"],"title":"LegacyPaymentRefundRequest"}},"components/schemas/LegacyPaymentRefundResponse":{"id":"components/schemas/LegacyPaymentRefundResponse","kind":"json-schema","title":"LegacyPaymentRefundResponse","data":{"properties":{"refundType":{"type":"string","title":"Refundtype"},"debtorAccountNumber":{"type":"string","title":"Debtoraccountnumber","default":""},"originalAmount":{"type":"number","title":"Originalamount"},"originalCurrency":{"type":"string","title":"Originalcurrency"},"grossRefundedAmount":{"type":"number","title":"Grossrefundedamount"},"netRefundedAmount":{"type":"number","title":"Netrefundedamount"},"remainingAmount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Remainingamount"},"refundId":{"type":"string","title":"Refundid"}},"type":"object","required":["refundType","originalAmount","originalCurrency","grossRefundedAmount","netRefundedAmount","remainingAmount","refundId"],"title":"LegacyPaymentRefundResponse"}},"components/schemas/LegacyPaymentRequest":{"id":"components/schemas/LegacyPaymentRequest","kind":"json-schema","title":"LegacyPaymentRequest","data":{"properties":{"customer":{"oneOf":[{"$ref":"#/components/schemas/LegacyCustomerPerson"},{"$ref":"#/components/schemas/LegacyCustomerOrganization"}],"title":"Customer","discriminator":{"propertyName":"type","mapping":{"organization":"#/components/schemas/LegacyCustomerOrganization","person":"#/components/schemas/LegacyCustomerPerson"}}},"order":{"$ref":"#/components/schemas/LegacyOrder"},"payment":{"$ref":"#/components/schemas/LegacyPayment"},"communication":{"$ref":"#/components/schemas/LegacyCommunication"},"behaviour":{"$ref":"#/components/schemas/LegacyBehaviour"},"serviceAdvisorEmail":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Serviceadvisoremail","description":"Can be set to describe which user in the remote ERP system that created the payment or order, this is helpful for reporting purposes and if the user also have access to the Spense platform the payment will be attached to this user. If the user does not have an account, a user with no roles or access will be created."},"paymentMethodId":{"anyOf":[{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},{"type":"null"}],"title":"Paymentmethodid","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"New field added 2024-08-27. Use the partner API to fetch a list of payment methods. Sending "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"null"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" here will rely on the default payment method (standard way of creating payments). A payment method can be anything, for example a terminal, invoice, payment link or any other future types of payments that may be implemented."},"children":[]}]}]}]},"callback":{"$ref":"#/components/schemas/LegacyCallback"},"supportFunctions":{"items":{"anyOf":[{"$ref":"#/components/schemas/LegacySupportFunctionSharebox"},{"$ref":"#/components/schemas/LegacySupportFunctionKeybox"}]},"type":"array","title":"Supportfunctions"}},"type":"object","required":["customer","order","payment"],"title":"LegacyPaymentRequest"}},"components/schemas/LegacyPaymentResponse":{"id":"components/schemas/LegacyPaymentResponse","kind":"json-schema","title":"LegacyPaymentResponse","data":{"properties":{"id":{"type":"string","title":"Id","description":"The ID of the payment, which is used to identify the payment in the system.","examples":["1234567890abcdef12345678"]},"_links":{"$ref":"#/components/schemas/LegacyPaymentLinksResponse","examples":[{"gui":"/1234567890abcdef12345678","longGui":"https://pay.spense.no/1234567890abcdef12345678"}]},"installments":{"anyOf":[{"items":{"$ref":"#/components/schemas/LegacyInstallmentResponse"},"type":"array"},{"type":"null"}],"title":"Installments"}},"type":"object","required":["id"],"title":"LegacyPaymentResponse"}},"components/schemas/LegacyPaymentStatusResponse":{"id":"components/schemas/LegacyPaymentStatusResponse","kind":"json-schema","title":"LegacyPaymentStatusResponse","data":{"properties":{"totalAmount":{"type":"number","title":"Totalamount"},"installments":{"anyOf":[{"items":{"$ref":"#/components/schemas/LegacyInstallmentResponse"},"type":"array"},{"type":"null"}],"title":"Installments"},"paymentId":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","title":"Paymentid"},"paymentNumber":{"type":"integer","title":"Paymentnumber"},"paymentStatus":{"$ref":"#/components/schemas/Status"},"merchantId":{"type":"string","title":"Merchantid"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"dueDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Duedate"},"files":{"items":{},"type":"array","title":"Files","default":[]}},"type":"object","required":["totalAmount","paymentId","paymentNumber","paymentStatus","merchantId","createdAt","dueDate"],"title":"LegacyPaymentStatusResponse"}},"components/schemas/LegacyPaymentWebhookPayload":{"id":"components/schemas/LegacyPaymentWebhookPayload","kind":"json-schema","title":"LegacyPaymentWebhookPayload","data":{"properties":{"id":{"type":"string","title":"Id"},"paymentStatus":{"$ref":"#/components/schemas/PayflowLegacyStatus"},"paymentMethod":{"anyOf":[{"$ref":"#/components/schemas/PaymentTypes"},{"type":"null"}]},"installmentUpdate":{"anyOf":[{"$ref":"#/components/schemas/LegacyInstallmentUpdate"},{"type":"null"}]}},"type":"object","required":["id","paymentStatus","paymentMethod"],"title":"LegacyPaymentWebhookPayload"}},"components/schemas/LegacyPhoneNumber":{"id":"components/schemas/LegacyPhoneNumber","kind":"json-schema","title":"LegacyPhoneNumber","data":{"properties":{"countryCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Countrycode","default":""},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number","default":""}},"type":"object","title":"LegacyPhoneNumber"}},"components/schemas/LegacySupportFunctionKeybox":{"id":"components/schemas/LegacySupportFunctionKeybox","kind":"json-schema","title":"LegacySupportFunctionKeybox","data":{"properties":{"keybox":{"$ref":"#/components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionKeybox__Data"}},"type":"object","required":["keybox"],"title":"LegacySupportFunctionKeybox"}},"components/schemas/LegacySupportFunctionSharebox":{"id":"components/schemas/LegacySupportFunctionSharebox","kind":"json-schema","title":"LegacySupportFunctionSharebox","data":{"properties":{"sharebox":{"$ref":"#/components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionSharebox__Data"}},"type":"object","required":["sharebox"],"title":"LegacySupportFunctionSharebox"}},"components/schemas/LegacyUpdateInstallmentRequest":{"id":"components/schemas/LegacyUpdateInstallmentRequest","kind":"json-schema","title":"LegacyUpdateInstallmentRequest","data":{"properties":{"grossAmount":{"type":"number","exclusiveMinimum":0,"title":"Grossamount"},"items":{"items":{"$ref":"#/components/schemas/LegacyPaymentItem"},"type":"array","title":"Items"}},"type":"object","required":["grossAmount"],"title":"LegacyUpdateInstallmentRequest"}},"components/schemas/PayflowLegacyStatus":{"id":"components/schemas/PayflowLegacyStatus","kind":"json-schema","title":"PayflowLegacyStatus","data":{"type":"string","enum":["DRAFT","OPENED","INITIATED","PENDING","SUCCESS","REJECTED","UNKNOWN"],"title":"PayflowLegacyStatus"}},"components/schemas/PaymentCostLineType":{"id":"components/schemas/PaymentCostLineType","kind":"json-schema","title":"PaymentCostLineType","data":{"type":"string","enum":["regular","shipping","part-sum"],"title":"PaymentCostLineType"}},"components/schemas/PaymentDepartment":{"id":"components/schemas/PaymentDepartment","kind":"json-schema","title":"PaymentDepartment","data":{"type":"string","enum":["UNKNOWN","CARSALE","SERVICE","PARTS","OTHER"],"title":"PaymentDepartment"}},"components/schemas/PaymentStatus":{"id":"components/schemas/PaymentStatus","kind":"json-schema","title":"PaymentStatus","data":{"type":"string","enum":["DRAFT","CREATED","SENT","OPENED","FAILED","PENDING","PAID","CANCELLED"],"title":"PaymentStatus"}},"components/schemas/PaymentTypes":{"id":"components/schemas/PaymentTypes","kind":"json-schema","title":"PaymentTypes","data":{"type":"string","enum":["CARD","CARD_TERMINAL","CASH","A2A","WALLET","INSTALLMENT","PARTPAYMENT","INVOICE","REVOLVING_CREDIT"],"title":"PaymentTypes"}},"components/schemas/Status":{"id":"components/schemas/Status","kind":"json-schema","title":"Status","data":{"properties":{"paymentStatus":{"$ref":"#/components/schemas/PayflowLegacyStatus"}},"type":"object","required":["paymentStatus"],"title":"Status"}},"components/schemas/Type":{"id":"components/schemas/Type","kind":"json-schema","title":"Type","data":{"type":"string","enum":["initial","scheduled"],"title":"Type"}},"components/schemas/ValidationError":{"id":"components/schemas/ValidationError","kind":"json-schema","title":"ValidationError","data":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionKeybox__Data":{"id":"components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionKeybox__Data","kind":"json-schema","title":"Data","data":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"lockerindex":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Lockerindex"},"pincode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pincode"},"plateNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platenumber"}},"type":"object","title":"Data"}},"components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionSharebox__Data":{"id":"components/schemas/spense__legacy__api_emulator__emulator_models__LegacySupportFunctionSharebox__Data","kind":"json-schema","title":"Data","data":{"properties":{"useSharebox":{"type":"boolean","title":"Usesharebox","default":false},"plateNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platenumber"}},"type":"object","title":"Data"}},"schema_26":{"kind":"json-schema","data":{"type":"string","description":"Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required.","title":"X-Organization-Id"},"id":"schema_26"},"schema_27":{"kind":"json-schema","data":{"anyOf":[{"type":"string","pattern":"^[a-fA-F0-9]{24}$"},{"type":"string","format":"uuid"}],"title":"Payflow Id"},"id":"schema_27"},"schema_28":{"kind":"json-schema","data":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","title":"Document Id"},"id":"schema_28"},"schema_29":{"kind":"json-schema","data":{"type":"object","additionalProperties":true,"title":"Response Delete Document"},"id":"schema_29"},"schema_30":{"kind":"json-schema","data":{"type":"object","additionalProperties":true,"title":"Response Delete Payment"},"id":"schema_30"},"schema_31":{"kind":"json-schema","data":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","title":"Payflow Id"},"id":"schema_31"},"schema_32":{"kind":"json-schema","data":{"type":"string","pattern":"^[a-fA-F0-9]{24}$","title":"Installment Id"},"id":"schema_32"},"schema_33":{"kind":"json-schema","data":{},"id":"schema_33"}},"exampleStore":{},"securitySchemeStore":{"OAuth2ClientCredentials":{"id":"OAuth2ClientCredentials","type":"oauth2","flows":{"clientCredentials":{"scopes":{},"tokenUrl":"/partner/auth/token"}}}},"servers":[{"url":"https://api.spense.no","description":"Production API (legacy)"}],"logo":{"imageUrl":"http://app.spensepay.com/assets/spense-logo.svg","altText":"Spense"}},"options":{"hideSidebar":true,"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/payment-management.json?download"},{"url":"/_bundle/apis/payment-management.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Spense Payment Management"}},"baseSlug":"/apis/payment-management","routesMapping":{}}