{"openapi":"3.1.0","info":{"title":"G3M API","version":"2.0.0"},"paths":{"/.well-known/oauth-authorization-server":{"get":{"summary":"Oauth Metadata","operationId":"oauth_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"summary":"Protected Resource Metadata","operationId":"protected_resource_metadata__well_known_oauth_protected_resource_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/register":{"post":{"summary":"Register Client","operationId":"register_client_oauth_register_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/authorize":{"get":{"summary":"Authorize","operationId":"authorize_oauth_authorize_get","parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","title":"Redirect Uri"}},{"name":"response_type","in":"query","required":true,"schema":{"type":"string","title":"Response Type"}},{"name":"code_challenge","in":"query","required":true,"schema":{"type":"string","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":true,"schema":{"type":"string","title":"Code Challenge Method"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"","title":"Scope"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"resource","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"summary":"Token","operationId":"token_oauth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_token_oauth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/revoke":{"post":{"summary":"Revoke","operationId":"revoke_oauth_revoke_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_revoke_oauth_revoke_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google":{"get":{"tags":["Auth"],"summary":"Google Login","operationId":"google_login_auth_google_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/callback":{"get":{"tags":["Auth"],"summary":"Google Callback","operationId":"google_callback_auth_google_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/me":{"get":{"tags":["Auth"],"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}}}},"/api/v1/public/integrations/mcp":{"get":{"tags":["Public Integrations"],"summary":"Get Mcp Integration","operationId":"get_mcp_integration_api_v1_public_integrations_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPIntegrationOut"}}}}}}},"/api/v1/addresses/search":{"post":{"tags":["Addresses"],"summary":"Search Addresses","operationId":"search_addresses_api_v1_addresses_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/addresses/resolve":{"post":{"tags":["Addresses"],"summary":"Resolve Address","operationId":"resolve_address_api_v1_addresses_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressResolveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NormalizedAddress"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me":{"get":{"tags":["Users"],"summary":"Get Me","operationId":"get_me_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}}},"patch":{"tags":["Users"],"summary":"Update Me","operationId":"update_me_api_v1_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account":{"get":{"tags":["Account"],"summary":"Get Account","operationId":"get_account_api_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}}}},"patch":{"tags":["Account"],"summary":"Update Account","operationId":"update_account_api_v1_account_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/payment-method":{"get":{"tags":["Payments"],"summary":"Payment Method","operationId":"payment_method_api_v1_payments_payment_method_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentMethodOut"},{"type":"null"}],"title":"Response Payment Method Api V1 Payments Payment Method Get"}}}}}},"delete":{"tags":["Payments"],"summary":"Delete Payment Method","operationId":"delete_payment_method_api_v1_payments_payment_method_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}}}},"/api/v1/payments/payment-method/manage":{"post":{"tags":["Payments"],"summary":"Manage Payment Method","operationId":"manage_payment_method_api_v1_payments_payment_method_manage_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodManagementOut"}}}}}}},"/api/v1/payments/webhook":{"post":{"tags":["Payments"],"summary":"Stripe Webhook","operationId":"stripe_webhook_api_v1_payments_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/oauth/authorization-requests/{request_id}":{"get":{"tags":["OAuth Authorization"],"summary":"Get Authorization Request","operationId":"get_authorization_request_api_v1_oauth_authorization_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAuthorizationRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/oauth/authorization-requests/{request_id}/decision":{"post":{"tags":["OAuth Authorization"],"summary":"Decide Authorization Request","operationId":"decide_authorization_request_api_v1_oauth_authorization_requests__request_id__decision_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAuthorizationDecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAuthorizationDecisionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders":{"get":{"tags":["Orders"],"summary":"List Orders","operationId":"list_orders_api_v1_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrderSummaryOut"},"type":"array","title":"Response List Orders Api V1 Orders Get"}}}}}},"post":{"tags":["Orders"],"summary":"Create Order","operationId":"create_order_api_v1_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}":{"get":{"tags":["Orders"],"summary":"Get Order","operationId":"get_order_api_v1_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Orders"],"summary":"Update Order","operationId":"update_order_api_v1_orders__order_id__patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Orders"],"summary":"Delete Order","operationId":"delete_order_api_v1_orders__order_id__delete","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/submit":{"post":{"tags":["Orders"],"summary":"Submit Order","operationId":"submit_order_api_v1_orders__order_id__submit_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/resubmit":{"post":{"tags":["Orders"],"summary":"Resubmit Order","operationId":"resubmit_order_api_v1_orders__order_id__resubmit_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/cancel":{"post":{"tags":["Orders"],"summary":"Cancel Order","operationId":"cancel_order_api_v1_orders__order_id__cancel_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelOrderRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/messages":{"get":{"tags":["Orders"],"summary":"List Messages","operationId":"list_messages_api_v1_orders__order_id__messages_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderMessageOut"},"title":"Response List Messages Api V1 Orders  Order Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Orders"],"summary":"Create Message","operationId":"create_message_api_v1_orders__order_id__messages_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderMessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/proposals":{"get":{"tags":["Orders"],"summary":"List Proposals","operationId":"list_proposals_api_v1_orders__order_id__proposals_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProposalOut"},"title":"Response List Proposals Api V1 Orders  Order Id  Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/proposals/{proposal_id}/reject":{"post":{"tags":["Orders"],"summary":"Reject Proposal","operationId":"reject_proposal_api_v1_orders__order_id__proposals__proposal_id__reject_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/proposals/{proposal_id}/approve":{"post":{"tags":["Orders"],"summary":"Approve Proposal","operationId":"approve_proposal_api_v1_orders__order_id__proposals__proposal_id__approve_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalApprovalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_id}/payment/resume":{"post":{"tags":["Orders"],"summary":"Resume Payment","operationId":"resume_payment_api_v1_orders__order_id__payment_resume_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResumeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders":{"get":{"tags":["Admin Orders"],"summary":"List Admin Orders","operationId":"list_admin_orders_api_v1_admin_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderStatus"},{"type":"null"}],"title":"Status"}},{"name":"status_group","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminOrderStatusGroup"},{"type":"null"}],"title":"Status Group"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Q"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrderListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}":{"get":{"tags":["Admin Orders"],"summary":"Get Admin Order","operationId":"get_admin_order_api_v1_admin_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/letter":{"get":{"tags":["Admin Orders"],"summary":"Admin Letter","operationId":"admin_letter_api_v1_admin_orders__order_id__letter_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/recipient":{"patch":{"tags":["Admin Orders"],"summary":"Update Recipient","operationId":"update_recipient_api_v1_admin_orders__order_id__recipient_patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRecipientUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/messages":{"post":{"tags":["Admin Orders"],"summary":"Admin Message","operationId":"admin_message_api_v1_admin_orders__order_id__messages_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderMessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/request-changes":{"post":{"tags":["Admin Orders"],"summary":"Request Changes","operationId":"request_changes_api_v1_admin_orders__order_id__request_changes_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestChangesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/reject":{"post":{"tags":["Admin Orders"],"summary":"Reject Order","operationId":"reject_order_api_v1_admin_orders__order_id__reject_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/proposals":{"post":{"tags":["Admin Orders"],"summary":"Create Proposal","operationId":"create_proposal_api_v1_admin_orders__order_id__proposals_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/proposals/{proposal_id}/clone":{"post":{"tags":["Admin Orders"],"summary":"Clone Proposal","operationId":"clone_proposal_api_v1_admin_orders__order_id__proposals__proposal_id__clone_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/proposals/{proposal_id}":{"patch":{"tags":["Admin Orders"],"summary":"Update Proposal","operationId":"update_proposal_api_v1_admin_orders__order_id__proposals__proposal_id__patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/proposals/{proposal_id}/publish":{"post":{"tags":["Admin Orders"],"summary":"Publish Proposal","operationId":"publish_proposal_api_v1_admin_orders__order_id__proposals__proposal_id__publish_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/proposals/{proposal_id}/withdraw":{"post":{"tags":["Admin Orders"],"summary":"Withdraw Proposal","operationId":"withdraw_proposal_api_v1_admin_orders__order_id__proposals__proposal_id__withdraw_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/refunds":{"get":{"tags":["Admin Orders"],"summary":"List Refunds","operationId":"list_refunds_api_v1_admin_orders__order_id__refunds_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PaymentRefundOut"},"title":"Response List Refunds Api V1 Admin Orders  Order Id  Refunds Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Admin Orders"],"summary":"Create Refund","operationId":"create_refund_api_v1_admin_orders__order_id__refunds_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":255,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRefundOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/refunds/preview":{"post":{"tags":["Admin Orders"],"summary":"Preview Refund","operationId":"preview_refund_api_v1_admin_orders__order_id__refunds_preview_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/fulfillment":{"get":{"tags":["Admin Orders"],"summary":"Get Fulfillment","operationId":"get_fulfillment_api_v1_admin_orders__order_id__fulfillment_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFulfillmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Admin Orders"],"summary":"Update Fulfillment","operationId":"update_fulfillment_api_v1_admin_orders__order_id__fulfillment_patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminFulfillmentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/fulfillment/items":{"post":{"tags":["Admin Orders"],"summary":"Create Fulfillment Item","operationId":"create_fulfillment_item_api_v1_admin_orders__order_id__fulfillment_items_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentItemCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/orders/{order_id}/fulfillment/items/{item_id}":{"patch":{"tags":["Admin Orders"],"summary":"Update Fulfillment Item","operationId":"update_fulfillment_item_api_v1_admin_orders__order_id__fulfillment_items__item_id__patch","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentItemUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Admin Orders"],"summary":"Delete Fulfillment Item","operationId":"delete_fulfillment_item_api_v1_admin_orders__order_id__fulfillment_items__item_id__delete","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/r/{order_number}":{"get":{"summary":"Request Page","operationId":"request_page_r__order_number__get","parameters":[{"name":"order_number","in":"path","required":true,"schema":{"type":"string","title":"Order Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/r/{order_number}/payment":{"get":{"summary":"Payment Setup","operationId":"payment_setup_r__order_number__payment_get","parameters":[{"name":"order_number","in":"path","required":true,"schema":{"type":"string","title":"Order Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/p/{token}":{"get":{"summary":"Letter Preview","operationId":"letter_preview_p__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["Health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"AccountOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","is_active","created_at"],"title":"AccountOut"},"AccountUpdate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":2,"title":"Name"}},"type":"object","required":["name"],"title":"AccountUpdate"},"AddressPrediction":{"properties":{"place_id":{"type":"string","title":"Place Id"},"text":{"type":"string","title":"Text"},"main_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Text"},"secondary_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondary Text"}},"type":"object","required":["place_id","text"],"title":"AddressPrediction"},"AddressResolveRequest":{"properties":{"place_id":{"type":"string","maxLength":512,"minLength":1,"title":"Place Id"},"session_token":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Session Token"}},"type":"object","required":["place_id"],"title":"AddressResolveRequest"},"AddressSearchRequest":{"properties":{"query":{"type":"string","maxLength":255,"minLength":3,"title":"Query"},"session_token":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Session Token"},"country_code":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country Code"}},"type":"object","required":["query"],"title":"AddressSearchRequest"},"AddressSearchResponse":{"properties":{"session_token":{"type":"string","title":"Session Token"},"predictions":{"items":{"$ref":"#/components/schemas/AddressPrediction"},"type":"array","title":"Predictions"}},"type":"object","required":["session_token","predictions"],"title":"AddressSearchResponse"},"AddressStatus":{"type":"string","enum":["needs_sourcing","provided","verified"],"title":"AddressStatus"},"AdminFulfillmentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"status":{"$ref":"#/components/schemas/FulfillmentStatus"},"carrier":{"anyOf":[{"$ref":"#/components/schemas/Carrier"},{"type":"null"}]},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Number"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"dispatched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dispatched At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"items":{"items":{"$ref":"#/components/schemas/FulfillmentItemOut"},"type":"array","title":"Items"}},"type":"object","required":["id","order_id","status","carrier","tracking_number","tracking_url","notes","dispatched_at","delivered_at","created_at","updated_at"],"title":"AdminFulfillmentOut"},"AdminOrderDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_number":{"type":"string","title":"Order Number"},"status":{"$ref":"#/components/schemas/OrderStatus"},"mailing_type":{"$ref":"#/components/schemas/MailingType"},"recipient_name":{"type":"string","title":"Recipient Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"account":{"$ref":"#/components/schemas/AccountOut"},"created_by":{"$ref":"#/components/schemas/UserOut"},"has_saved_payment_method":{"type":"boolean","title":"Has Saved Payment Method"},"recipient":{"$ref":"#/components/schemas/RecipientOut"},"gift_request":{"$ref":"#/components/schemas/GiftRequestOut"},"letter":{"$ref":"#/components/schemas/LetterOut"},"request_url":{"type":"string","title":"Request Url"},"proposals":{"items":{"$ref":"#/components/schemas/ProposalOut"},"type":"array","title":"Proposals"},"messages":{"items":{"$ref":"#/components/schemas/OrderMessageOut"},"type":"array","title":"Messages"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentOut"},{"type":"null"}]},"payment_setup_required":{"type":"boolean","title":"Payment Setup Required","default":false},"payment_setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Setup Url"},"payment_action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Action Url"},"payment_retry_available":{"type":"boolean","title":"Payment Retry Available","default":false},"fulfillment":{"anyOf":[{"$ref":"#/components/schemas/AdminFulfillmentOut"},{"type":"null"}]},"events":{"items":{"$ref":"#/components/schemas/AuditEventOut"},"type":"array","title":"Events"},"refunds":{"items":{"$ref":"#/components/schemas/PaymentRefundOut"},"type":"array","title":"Refunds"}},"type":"object","required":["id","order_number","status","mailing_type","recipient_name","company","created_at","submitted_at","account_id","created_by_user_id","account","created_by","has_saved_payment_method","recipient","gift_request","letter","request_url"],"title":"AdminOrderDetailOut"},"AdminOrderListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminOrderSummaryOut"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"total_pages":{"type":"integer","title":"Total Pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_previous":{"type":"boolean","title":"Has Previous"}},"type":"object","required":["items","page","page_size","total","total_pages","has_next","has_previous"],"title":"AdminOrderListOut"},"AdminOrderStatusGroup":{"type":"string","enum":["active","completed","cancelled"],"title":"AdminOrderStatusGroup"},"AdminOrderSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_number":{"type":"string","title":"Order Number"},"status":{"$ref":"#/components/schemas/OrderStatus"},"mailing_type":{"$ref":"#/components/schemas/MailingType"},"recipient_name":{"type":"string","title":"Recipient Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"customer_name":{"type":"string","title":"Customer Name"},"customer_email":{"type":"string","title":"Customer Email"}},"type":"object","required":["id","order_number","status","mailing_type","recipient_name","company","created_at","submitted_at","account_id","account_name","customer_name","customer_email"],"title":"AdminOrderSummaryOut"},"AdminRecipientUpdate":{"properties":{"first_name":{"type":"string","maxLength":120,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":120,"minLength":1,"title":"Last Name"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"address_line_1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"City"},"state_region":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"State Region"},"postal_code":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"},"profile_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Profile Url"},"address_status":{"anyOf":[{"$ref":"#/components/schemas/AddressStatus"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["first_name","last_name"],"title":"AdminRecipientUpdate"},"AuditEventOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"event_data":{"additionalProperties":true,"type":"object","title":"Event Data"},"actor_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","event_data","actor_user_id","created_at"],"title":"AuditEventOut"},"Body_revoke_oauth_revoke_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_revoke_oauth_revoke_post"},"Body_token_oauth_token_post":{"properties":{"grant_type":{"type":"string","title":"Grant Type"},"client_id":{"type":"string","title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"redirect_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Uri"},"code_verifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Verifier"},"refresh_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},"type":"object","required":["grant_type","client_id"],"title":"Body_token_oauth_token_post"},"CancelOrderRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"CancelOrderRequest"},"Carrier":{"type":"string","enum":["fedex","ups","usps","dhl","local_courier","other"],"title":"Carrier"},"CustomerActivityEventOut":{"properties":{"event_type":{"type":"string","title":"Event Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"refund_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refund Amount Cents"},"retained_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retained Amount Cents"},"processing_fee_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Fee Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"carrier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Carrier"},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Number"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"}},"type":"object","required":["event_type","created_at"],"title":"CustomerActivityEventOut"},"FulfillmentItemCreate":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description"},"vendor_name":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Vendor Name"},"product_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Product Url"},"quantity":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Quantity","default":1},"internal_unit_cost_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Internal Unit Cost Cents"},"tracking_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tracking Number"},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes"},"sort_order":{"type":"integer","minimum":0.0,"title":"Sort Order","default":0}},"type":"object","required":["title"],"title":"FulfillmentItemCreate"},"FulfillmentItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"fulfillment_id":{"type":"string","format":"uuid","title":"Fulfillment Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"product_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Url"},"quantity":{"type":"integer","title":"Quantity"},"internal_unit_cost_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Internal Unit Cost Cents"},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Number"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"sort_order":{"type":"integer","title":"Sort Order"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","fulfillment_id","title","description","vendor_name","product_url","quantity","internal_unit_cost_cents","tracking_number","notes","sort_order","created_at","updated_at"],"title":"FulfillmentItemOut"},"FulfillmentItemUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Description"},"vendor_name":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Vendor Name"},"product_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Product Url"},"quantity":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Quantity"},"internal_unit_cost_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Internal Unit Cost Cents"},"tracking_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tracking Number"},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes"},"sort_order":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"FulfillmentItemUpdate"},"FulfillmentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"status":{"$ref":"#/components/schemas/FulfillmentStatus"},"carrier":{"anyOf":[{"$ref":"#/components/schemas/Carrier"},{"type":"null"}]},"tracking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Number"},"tracking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tracking Url"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"dispatched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dispatched At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","order_id","status","carrier","tracking_number","tracking_url","notes","dispatched_at","delivered_at","created_at","updated_at"],"title":"FulfillmentOut"},"FulfillmentStatus":{"type":"string","enum":["ready","fulfilling","shipped","delivered","completed"],"title":"FulfillmentStatus"},"FulfillmentUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentStatus"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Reason"},"carrier":{"anyOf":[{"$ref":"#/components/schemas/Carrier"},{"type":"null"}]},"tracking_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tracking Number"},"tracking_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Tracking Url"},"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Notes"}},"type":"object","title":"FulfillmentUpdate"},"GiftRequestInput":{"properties":{"request_type":{"$ref":"#/components/schemas/GiftRequestType"},"product_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Product Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sourcing_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Prompt"},"target_budget_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Target Budget Cents"}},"additionalProperties":false,"type":"object","required":["request_type"],"title":"GiftRequestInput"},"GiftRequestOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"request_type":{"$ref":"#/components/schemas/GiftRequestType"},"product_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sourcing_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourcing Prompt"},"target_budget_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Budget Cents"}},"type":"object","required":["id","request_type","product_url","description","sourcing_prompt","target_budget_cents"],"title":"GiftRequestOut"},"GiftRequestType":{"type":"string","enum":["specific","discovery"],"title":"GiftRequestType"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LetterOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"content":{"type":"string","title":"Content"},"version":{"type":"integer","title":"Version"},"locked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"preview_url":{"type":"string","title":"Preview Url"}},"type":"object","required":["id","content","version","locked_at","created_at","updated_at","preview_url"],"title":"LetterOut"},"MCPIntegrationOut":{"properties":{"name":{"type":"string","title":"Name","default":"G3M"},"enabled":{"type":"boolean","title":"Enabled"},"server_url":{"type":"string","title":"Server Url"}},"type":"object","required":["enabled","server_url"],"title":"MCPIntegrationOut"},"MailingType":{"type":"string","enum":["letter"],"title":"MailingType"},"MessageResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"MessageResponse"},"NormalizedAddress":{"properties":{"google_place_id":{"type":"string","title":"Google Place Id"},"formatted_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Address"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Region"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string","maxLength":2,"minLength":2},{"type":"null"}],"title":"Country"},"country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Name"},"complete":{"type":"boolean","title":"Complete"},"missing_fields":{"items":{"type":"string"},"type":"array","title":"Missing Fields"}},"type":"object","required":["google_place_id","complete","missing_fields"],"title":"NormalizedAddress"},"OAuthAuthorizationDecisionIn":{"properties":{"decision":{"type":"string","enum":["allow","deny"],"title":"Decision"}},"type":"object","required":["decision"],"title":"OAuthAuthorizationDecisionIn"},"OAuthAuthorizationDecisionOut":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["redirect_url"],"title":"OAuthAuthorizationDecisionOut"},"OAuthAuthorizationRequestOut":{"properties":{"client_name":{"type":"string","title":"Client Name"},"user_email":{"type":"string","title":"User Email"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["client_name","user_email","scopes","expires_at"],"title":"OAuthAuthorizationRequestOut"},"OrderCreate":{"properties":{"recipient":{"$ref":"#/components/schemas/RecipientCreateInput"},"gift_request":{"$ref":"#/components/schemas/GiftRequestInput"},"letter_content":{"type":"string","maxLength":50000,"minLength":1,"title":"Letter Content"},"mailing_type":{"$ref":"#/components/schemas/MailingType","default":"letter"}},"type":"object","required":["recipient","gift_request","letter_content"],"title":"OrderCreate"},"OrderDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_number":{"type":"string","title":"Order Number"},"status":{"$ref":"#/components/schemas/OrderStatus"},"mailing_type":{"$ref":"#/components/schemas/MailingType"},"recipient_name":{"type":"string","title":"Recipient Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"account":{"$ref":"#/components/schemas/AccountOut"},"created_by":{"$ref":"#/components/schemas/UserOut"},"has_saved_payment_method":{"type":"boolean","title":"Has Saved Payment Method"},"recipient":{"$ref":"#/components/schemas/RecipientOut"},"gift_request":{"$ref":"#/components/schemas/GiftRequestOut"},"letter":{"$ref":"#/components/schemas/LetterOut"},"request_url":{"type":"string","title":"Request Url"},"proposals":{"items":{"$ref":"#/components/schemas/ProposalOut"},"type":"array","title":"Proposals"},"messages":{"items":{"$ref":"#/components/schemas/OrderMessageOut"},"type":"array","title":"Messages"},"payment":{"anyOf":[{"$ref":"#/components/schemas/PaymentOut"},{"type":"null"}]},"payment_setup_required":{"type":"boolean","title":"Payment Setup Required","default":false},"payment_setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Setup Url"},"payment_action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Action Url"},"payment_retry_available":{"type":"boolean","title":"Payment Retry Available","default":false},"fulfillment":{"anyOf":[{"$ref":"#/components/schemas/FulfillmentOut"},{"type":"null"}]},"events":{"items":{"$ref":"#/components/schemas/CustomerActivityEventOut"},"type":"array","title":"Events"}},"type":"object","required":["id","order_number","status","mailing_type","recipient_name","company","created_at","submitted_at","account_id","created_by_user_id","account","created_by","has_saved_payment_method","recipient","gift_request","letter","request_url"],"title":"OrderDetailOut"},"OrderMessageCreate":{"properties":{"message":{"type":"string","maxLength":10000,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"OrderMessageCreate"},"OrderMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"author_user_id":{"type":"string","format":"uuid","title":"Author User Id"},"message":{"type":"string","title":"Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","order_id","author_user_id","message","created_at"],"title":"OrderMessageOut"},"OrderStatus":{"type":"string","enum":["draft","submitted","sourcing","awaiting_customer","proposals_ready","proposal_approved","payment_method_required","payment_processing","payment_action_required","payment_failed","paid","ready_for_fulfillment","fulfilling","shipped","delivered","completed","rejected","cancelled"],"title":"OrderStatus"},"OrderSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_number":{"type":"string","title":"Order Number"},"status":{"$ref":"#/components/schemas/OrderStatus"},"mailing_type":{"$ref":"#/components/schemas/MailingType"},"recipient_name":{"type":"string","title":"Recipient Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["id","order_number","status","mailing_type","recipient_name","company","created_at","submitted_at"],"title":"OrderSummaryOut"},"OrderUpdate":{"properties":{"recipient":{"anyOf":[{"$ref":"#/components/schemas/RecipientCreateInput"},{"type":"null"}]},"gift_request":{"anyOf":[{"$ref":"#/components/schemas/GiftRequestInput"},{"type":"null"}]},"letter_content":{"anyOf":[{"type":"string","maxLength":50000,"minLength":1},{"type":"null"}],"title":"Letter Content"}},"type":"object","title":"OrderUpdate"},"PaymentMethodManagementOut":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PaymentMethodManagementOut"},"PaymentMethodOut":{"properties":{"id":{"type":"string","title":"Id"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last4"},"exp_month":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Month"},"exp_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exp Year"}},"type":"object","required":["id"],"title":"PaymentMethodOut"},"PaymentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"proposal_id":{"type":"string","format":"uuid","title":"Proposal Id"},"stripe_invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Invoice Id"},"stripe_invoice_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Invoice Number"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"},"invoice_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf Url"},"stripe_payment_intent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Payment Intent Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"$ref":"#/components/schemas/PaymentStatus"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"refunded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Refunded At"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents","default":0},"refund_pending_amount_cents":{"type":"integer","title":"Refund Pending Amount Cents","default":0},"refundable_amount_cents":{"type":"integer","title":"Refundable Amount Cents","default":0}},"type":"object","required":["id","order_id","proposal_id","stripe_invoice_id","stripe_invoice_number","hosted_invoice_url","invoice_pdf_url","stripe_payment_intent_id","amount_cents","currency","status","failure_code","failure_message","paid_at","refunded_at"],"title":"PaymentOut"},"PaymentRefundOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"payment_id":{"type":"string","format":"uuid","title":"Payment Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"created_by_admin_id":{"type":"string","format":"uuid","title":"Created By Admin Id"},"action":{"$ref":"#/components/schemas/RefundAction"},"status":{"$ref":"#/components/schemas/RefundStatus"},"gross_paid_cents":{"type":"integer","title":"Gross Paid Cents"},"refund_amount_cents":{"type":"integer","title":"Refund Amount Cents"},"retained_amount_cents":{"type":"integer","title":"Retained Amount Cents"},"currency":{"type":"string","title":"Currency"},"reason":{"type":"string","title":"Reason"},"internal_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Note"},"stripe_refund_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Refund Id"},"stripe_credit_note_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Credit Note Id"},"stripe_credit_note_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Credit Note Number"},"stripe_credit_note_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Credit Note Pdf Url"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"succeeded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Succeeded At"}},"type":"object","required":["id","payment_id","order_id","created_by_admin_id","action","status","gross_paid_cents","refund_amount_cents","retained_amount_cents","currency","reason","internal_note","stripe_refund_id","stripe_credit_note_id","stripe_credit_note_number","stripe_credit_note_pdf_url","failure_code","failure_message","created_at","updated_at","succeeded_at"],"title":"PaymentRefundOut"},"PaymentResumeResponse":{"properties":{"order_status":{"$ref":"#/components/schemas/OrderStatus"},"payment_status":{"$ref":"#/components/schemas/PaymentStatus"},"payment_setup_required":{"type":"boolean","title":"Payment Setup Required","default":false},"payment_setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Setup Url"},"payment_action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Action Url"},"payment_retry_available":{"type":"boolean","title":"Payment Retry Available","default":false},"invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Url"},"invoice_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf Url"},"request_url":{"type":"string","title":"Request Url"}},"type":"object","required":["order_status","payment_status","request_url"],"title":"PaymentResumeResponse"},"PaymentStatus":{"type":"string","enum":["not_charged","processing","action_required","paid","partially_refunded","failed","refunded","cancelled"],"title":"PaymentStatus"},"ProposalApprovalResponse":{"properties":{"proposal":{"$ref":"#/components/schemas/ProposalOut"},"payment_status":{"type":"string","title":"Payment Status"},"payment_setup_required":{"type":"boolean","title":"Payment Setup Required","default":false},"payment_setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Setup Url"},"payment_action_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Action Url"},"payment_retry_available":{"type":"boolean","title":"Payment Retry Available","default":false},"invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Url"},"invoice_pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf Url"},"request_url":{"type":"string","title":"Request Url"}},"type":"object","required":["proposal","payment_status","request_url"],"title":"ProposalApprovalResponse"},"ProposalCostCreate":{"properties":{"type":{"$ref":"#/components/schemas/ProposalCostType"},"description":{"type":"string","maxLength":255,"minLength":1,"title":"Description"},"amount_cents":{"type":"integer","minimum":0.0,"title":"Amount Cents"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["type","description","amount_cents"],"title":"ProposalCostCreate"},"ProposalCostOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"$ref":"#/components/schemas/ProposalCostType"},"description":{"type":"string","title":"Description"},"amount_cents":{"type":"integer","title":"Amount Cents"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","type","description","amount_cents","sort_order"],"title":"ProposalCostOut"},"ProposalCostType":{"type":"string","enum":["product","sourcing_fee","fulfillment_fee","shipping","courier","tax","packaging","other"],"title":"ProposalCostType"},"ProposalCreate":{"properties":{"proposal_round":{"type":"integer","minimum":1.0,"title":"Proposal Round","default":1},"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"description":{"type":"string","minLength":1,"title":"Description"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"usd"},"items":{"items":{"$ref":"#/components/schemas/ProposalItemCreate"},"type":"array","minItems":1,"title":"Items"},"costs":{"items":{"$ref":"#/components/schemas/ProposalCostCreate"},"type":"array","title":"Costs"}},"type":"object","required":["title","description","items"],"title":"ProposalCreate"},"ProposalItemCreate":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vendor_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Vendor Name"},"product_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Product Url"},"image_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Image Url"},"availability_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability Notes"},"quantity":{"type":"integer","minimum":1.0,"title":"Quantity","default":1},"unit_price_cents":{"type":"integer","minimum":0.0,"title":"Unit Price Cents"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["title","unit_price_cents"],"title":"ProposalItemCreate"},"ProposalItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"product_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Url"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"availability_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability Notes"},"quantity":{"type":"integer","title":"Quantity"},"unit_price_cents":{"type":"integer","title":"Unit Price Cents"},"subtotal_cents":{"type":"integer","title":"Subtotal Cents"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","title","description","vendor_name","product_url","image_url","availability_notes","quantity","unit_price_cents","subtotal_cents","sort_order"],"title":"ProposalItemOut"},"ProposalOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"proposal_round":{"type":"integer","title":"Proposal Round"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"$ref":"#/components/schemas/ProposalStatus"},"currency":{"type":"string","title":"Currency"},"items_subtotal_cents":{"type":"integer","title":"Items Subtotal Cents"},"fees_total_cents":{"type":"integer","title":"Fees Total Cents"},"total_amount_cents":{"type":"integer","title":"Total Amount Cents"},"approved_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Approved By User Id"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"items":{"items":{"$ref":"#/components/schemas/ProposalItemOut"},"type":"array","title":"Items"},"costs":{"items":{"$ref":"#/components/schemas/ProposalCostOut"},"type":"array","title":"Costs"}},"type":"object","required":["id","order_id","proposal_round","title","description","status","currency","items_subtotal_cents","fees_total_cents","total_amount_cents","approved_by_user_id","approved_at","created_at"],"title":"ProposalOut"},"ProposalStatus":{"type":"string","enum":["draft","proposed","approved","rejected","withdrawn"],"title":"ProposalStatus"},"ProposalUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProposalItemCreate"},"type":"array","minItems":1},{"type":"null"}],"title":"Items"},"costs":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProposalCostCreate"},"type":"array"},{"type":"null"}],"title":"Costs"}},"type":"object","title":"ProposalUpdate"},"RecipientCreateInput":{"properties":{"first_name":{"type":"string","maxLength":120,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":120,"minLength":1,"title":"Last Name"},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company"},"address_line_1":{"type":"string","maxLength":255,"minLength":1,"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Address Line 2"},"city":{"type":"string","maxLength":120,"minLength":1,"title":"City"},"state_region":{"type":"string","maxLength":120,"minLength":1,"title":"State Region"},"postal_code":{"type":"string","maxLength":40,"minLength":1,"title":"Postal Code"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"profile_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Profile Url"}},"additionalProperties":false,"type":"object","required":["first_name","last_name","address_line_1","city","state_region","postal_code","country"],"title":"RecipientCreateInput"},"RecipientOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"address_line_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 1"},"address_line_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line 2"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Region"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"address_status":{"$ref":"#/components/schemas/AddressStatus"},"profile_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Url"}},"type":"object","required":["id","first_name","last_name","company","address_line_1","address_line_2","city","state_region","postal_code","country","address_status","profile_url"],"title":"RecipientOut"},"RefundAction":{"type":"string","enum":["cancel_customer_cost","cancel_full_refund","partial_refund"],"title":"RefundAction"},"RefundCreate":{"properties":{"action":{"$ref":"#/components/schemas/RefundAction"},"amount_cents":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Amount Cents"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"internal_note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Internal Note"}},"additionalProperties":false,"type":"object","required":["action","reason"],"title":"RefundCreate"},"RefundPreviewOut":{"properties":{"action":{"$ref":"#/components/schemas/RefundAction"},"gross_paid_cents":{"type":"integer","title":"Gross Paid Cents"},"refunded_amount_cents":{"type":"integer","title":"Refunded Amount Cents"},"pending_refund_amount_cents":{"type":"integer","title":"Pending Refund Amount Cents"},"refundable_amount_cents":{"type":"integer","title":"Refundable Amount Cents"},"processing_fee_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Processing Fee Cents"},"refund_amount_cents":{"type":"integer","title":"Refund Amount Cents"},"retained_amount_cents":{"type":"integer","title":"Retained Amount Cents"},"cancels_order":{"type":"boolean","title":"Cancels Order"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["action","gross_paid_cents","refunded_amount_cents","pending_refund_amount_cents","refundable_amount_cents","processing_fee_cents","refund_amount_cents","retained_amount_cents","cancels_order","currency"],"title":"RefundPreviewOut"},"RefundPreviewRequest":{"properties":{"action":{"$ref":"#/components/schemas/RefundAction"},"amount_cents":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Amount Cents"}},"additionalProperties":false,"type":"object","required":["action"],"title":"RefundPreviewRequest"},"RefundStatus":{"type":"string","enum":["pending","succeeded","failed"],"title":"RefundStatus"},"RejectOrderRequest":{"properties":{"reason":{"type":"string","maxLength":10000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"RejectOrderRequest"},"RequestChangesRequest":{"properties":{"message":{"type":"string","maxLength":10000,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"RequestChangesRequest"},"UserOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","title":"Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"role":{"$ref":"#/components/schemas/UserRole"},"status":{"$ref":"#/components/schemas/UserStatus"},"is_active":{"type":"boolean","title":"Is Active"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","account_id","email","name","avatar_url","role","status","is_active","last_login_at","created_at"],"title":"UserOut"},"UserRole":{"type":"string","enum":["customer_user","customer_admin","platform_admin"],"title":"UserRole"},"UserStatus":{"type":"string","enum":["active","disabled"],"title":"UserStatus"},"UserUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"}},"type":"object","title":"UserUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}