Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(connector): [Multisafepay] add error handling (#2595)
AkshayaFoigerb3c846d637dd
diff --git a/crates/router/src/connector/multisafepay.rs b/crates/router/src/connector/multisafepay.rsindex 1ea5029fd0..e09f242abc 100644--- a/crates/router/src/connector/multisafepay.rs+++ b/crates/router/src/connector/multisafepay.rs@@ -200,10 +200,11 @@ impl ConnectorIntegration<api::PSync, types::PaymentsSyncData, types::PaymentsRedata: &types::PaymentsSyncRouterData,res: Response,) -> CustomResult<types::PaymentsSyncRouterData, errors::ConnectorError> {- let response: multisafepay::MultisafepayPaymentsResponse = res+ let response: multisafepay::MultisafepayAuthResponse = res.response.parse_struct("multisafepay PaymentsResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;+types::RouterData::try_from(types::ResponseRouterData {response,data: data.clone(),@@ -301,10 +302,11 @@ impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::Pdata: &types::PaymentsAuthorizeRouterData,res: Response,) -> CustomResult<types::PaymentsAuthorizeRouterData, errors::ConnectorError> {- let response: multisafepay::MultisafepayPaymentsResponse = res+ let response: multisafepay::MultisafepayAuthResponse = res.response.parse_struct("MultisafepayPaymentsResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;+types::ResponseRouterData {response,data: data.clone(),@@ -399,17 +401,17 @@ impl ConnectorIntegration<api::Execute, types::RefundsData, types::RefundsRespondata: &types::RefundsRouterData<api::Execute>,res: Response,) -> CustomResult<types::RefundsRouterData<api::Execute>, errors::ConnectorError> {- let response: multisafepay::RefundResponse = res+ let response: multisafepay::MultisafepayRefundResponse = res.response.parse_struct("multisafepay RefundResponse")- .change_context(errors::ConnectorError::RequestEncodingFailed)?;+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;types::ResponseRouterData {response,data: data.clone(),http_code: res.status_code,}.try_into()- .change_context(errors::ConnectorError::ResponseHandlingFailed)+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)}fn get_error_response(@@ -472,7 +474,7 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponsedata: &types::RefundSyncRouterData,res: Response,) -> CustomResult<types::RefundSyncRouterData, errors::ConnectorError> {- let response: multisafepay::RefundResponse = res+ let response: multisafepay::MultisafepayRefundResponse = res.response.parse_struct("multisafepay RefundResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;@@ -482,7 +484,7 @@ impl ConnectorIntegration<api::RSync, types::RefundsData, types::RefundsResponsehttp_code: res.status_code,}.try_into()- .change_context(errors::ConnectorError::ResponseHandlingFailed)+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)}fn get_error_response(diff --git a/crates/router/src/connector/multisafepay/transformers.rs b/crates/router/src/connector/multisafepay/transformers.rsindex 2fa53135be..3eead97ad8 100644--- a/crates/router/src/connector/multisafepay/transformers.rs+++ b/crates/router/src/connector/multisafepay/transformers.rs@@ -636,57 +636,76 @@ pub struct MultisafepayPaymentsResponse {pub data: Data,}+#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]+#[serde(untagged)]+pub enum MultisafepayAuthResponse {+ ErrorResponse(MultisafepayErrorResponse),+ PaymentResponse(MultisafepayPaymentsResponse),+}+impl<F, T>- TryFrom<- types::ResponseRouterData<F, MultisafepayPaymentsResponse, T, types::PaymentsResponseData>,- > for types::RouterData<F, T, types::PaymentsResponseData>+ TryFrom<types::ResponseRouterData<F, MultisafepayAuthResponse, T, types::PaymentsResponseData>>+ for types::RouterData<F, T, types::PaymentsResponseData>{type Error = error_stack::Report<errors::ParsingError>;fn try_from(item: types::ResponseRouterData<F,- MultisafepayPaymentsResponse,+ MultisafepayAuthResponse,T,types::PaymentsResponseData,>,) -> Result<Self, Self::Error> {- let redirection_data = item- .response- .data- .payment_url- .clone()- .map(|url| services::RedirectForm::from((url, services::Method::Get)));-- let default_status = if item.response.success {- MultisafepayPaymentStatus::Initialized- } else {- MultisafepayPaymentStatus::Declined- };-- let status = item.response.data.status.unwrap_or(default_status);-- Ok(Self {- status: enums::AttemptStatus::from(status),- response: Ok(types::PaymentsResponseData::TransactionResponse {- resource_id: types::ResponseId::ConnectorTransactionId(- item.response.data.order_id.clone(),- ),- redirection_data,- mandate_reference: item- .response+ match item.response {+ MultisafepayAuthResponse::PaymentResponse(payment_response) => {+ let redirection_data = payment_response.data- .payment_details- .and_then(|payment_details| payment_details.recurring_id)- .map(|id| types::MandateReference {- connector_mandate_id: Some(id),- payment_method_id: None,+ .payment_url+ .clone()+ .map(|url| services::RedirectForm::from((url, services::Method::Get)));++ let default_status = if payment_response.success {+ MultisafepayPaymentStatus::Initialized+ } else {+ MultisafepayPaymentStatus::Declined+ };++ let status = payment_response.data.status.unwrap_or(default_status);++ Ok(Self {+ status: enums::AttemptStatus::from(status),+ response: Ok(types::PaymentsResponseData::TransactionResponse {+ resource_id: types::ResponseId::ConnectorTransactionId(+ payment_response.data.order_id.clone(),+ ),+ redirection_data,+ mandate_reference: payment_response+ .data+ .payment_details+ .and_then(|payment_details| payment_details.recurring_id)+ .map(|id| types::MandateReference {+ connector_mandate_id: Some(id),+ payment_method_id: None,+ }),+ connector_metadata: None,+ network_txn_id: None,+ connector_response_reference_id: Some(+ payment_response.data.order_id.clone(),+ ),}),- connector_metadata: None,- network_txn_id: None,- connector_response_reference_id: Some(item.response.data.order_id.clone()),+ ..item.data+ })+ }+ MultisafepayAuthResponse::ErrorResponse(error_response) => Ok(Self {+ response: Err(types::ErrorResponse {+ code: error_response.error_code.to_string(),+ message: error_response.error_info.clone(),+ reason: Some(error_response.error_info),+ status_code: item.http_code,+ }),+ ..item.data}),- ..item.data- })+ }}}@@ -747,61 +766,93 @@ pub struct RefundData {pub error_code: Option<i32>,pub error_info: Option<String>,}-#[derive(Default, Debug, Clone, Serialize, Deserialize)]+#[derive(Debug, Clone, Serialize, Deserialize)]pub struct RefundResponse {pub success: bool,pub data: RefundData,}-impl TryFrom<types::RefundsResponseRouterData<api::Execute, RefundResponse>>+#[derive(Debug, Clone, Serialize, Deserialize)]+#[serde(untagged)]+pub enum MultisafepayRefundResponse {+ ErrorResponse(MultisafepayErrorResponse),+ RefundResponse(RefundResponse),+}++impl TryFrom<types::RefundsResponseRouterData<api::Execute, MultisafepayRefundResponse>>for types::RefundsRouterData<api::Execute>{type Error = error_stack::Report<errors::ParsingError>;fn try_from(- item: types::RefundsResponseRouterData<api::Execute, RefundResponse>,+ item: types::RefundsResponseRouterData<api::Execute, MultisafepayRefundResponse>,) -> Result<Self, Self::Error> {- let refund_stat = if item.response.success {- RefundStatus::Succeeded- } else {- RefundStatus::Failed- };-- Ok(Self {- response: Ok(types::RefundsResponseData {- connector_refund_id: item.response.data.refund_id.to_string(),- refund_status: enums::RefundStatus::from(refund_stat),+ match item.response {+ MultisafepayRefundResponse::RefundResponse(refund_data) => {+ let refund_status = if refund_data.success {+ RefundStatus::Succeeded+ } else {+ RefundStatus::Failed+ };++ Ok(Self {+ response: Ok(types::RefundsResponseData {+ connector_refund_id: refund_data.data.refund_id.to_string(),+ refund_status: enums::RefundStatus::from(refund_status),+ }),+ ..item.data+ })+ }+ MultisafepayRefundResponse::ErrorResponse(error_response) => Ok(Self {+ response: Err(types::ErrorResponse {+ code: error_response.error_code.to_string(),+ message: error_response.error_info.clone(),+ reason: Some(error_response.error_info),+ status_code: item.http_code,+ }),+ ..item.data}),- ..item.data- })+ }}}-impl TryFrom<types::RefundsResponseRouterData<api::RSync, RefundResponse>>+impl TryFrom<types::RefundsResponseRouterData<api::RSync, MultisafepayRefundResponse>>for types::RefundsRouterData<api::RSync>{type Error = error_stack::Report<errors::ParsingError>;fn try_from(- item: types::RefundsResponseRouterData<api::RSync, RefundResponse>,+ item: types::RefundsResponseRouterData<api::RSync, MultisafepayRefundResponse>,) -> Result<Self, Self::Error> {- let refund_status = if item.response.success {- RefundStatus::Succeeded- } else {- RefundStatus::Failed- };-- Ok(Self {- response: Ok(types::RefundsResponseData {- connector_refund_id: item.response.data.refund_id.to_string(),- refund_status: enums::RefundStatus::from(refund_status),+ match item.response {+ MultisafepayRefundResponse::RefundResponse(refund_data) => {+ let refund_status = if refund_data.success {+ RefundStatus::Succeeded+ } else {+ RefundStatus::Failed+ };++ Ok(Self {+ response: Ok(types::RefundsResponseData {+ connector_refund_id: refund_data.data.refund_id.to_string(),+ refund_status: enums::RefundStatus::from(refund_status),+ }),+ ..item.data+ })+ }+ MultisafepayRefundResponse::ErrorResponse(error_response) => Ok(Self {+ response: Err(types::ErrorResponse {+ code: error_response.error_code.to_string(),+ message: error_response.error_info.clone(),+ reason: Some(error_response.error_info),+ status_code: item.http_code,+ }),+ ..item.data}),- ..item.data- })+ }}}-#[derive(Default, Debug, Serialize, Deserialize, PartialEq)]+#[derive(Default, Debug, Serialize, Deserialize, PartialEq, Clone)]pub struct MultisafepayErrorResponse {- pub success: bool,pub error_code: i32,pub error_info: String,}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/QuickStart/Payments - Create/request.json b/postman/collection-dir/multisafepay/Flow Testcases/QuickStart/Payments - Create/request.jsonindex 289e780a72..a4e816ad17 100644--- a/postman/collection-dir/multisafepay/Flow Testcases/QuickStart/Payments - Create/request.json+++ b/postman/collection-dir/multisafepay/Flow Testcases/QuickStart/Payments - Create/request.json@@ -55,6 +55,10 @@"last_name": "happy"}},+ "routing": {+ "type": "single",+ "data": "multisafepay"+ },"shipping": {"address": {"line1": "1467",diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/.event.meta.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/.event.meta.jsonnew file mode 100644index 0000000000..0731450e6b--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.test.js"]+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/event.test.js b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/event.test.jsnew file mode 100644index 0000000000..d7259b6a84--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/event.test.js@@ -0,0 +1,39 @@+// Validate status 2xx+pm.test(+ "[POST]::/account/:account_id/connectors/:connector_id - Status code is 2xx",+ function () {+ pm.response.to.be.success;+ },+);++// Validate if response header has matching content-type+pm.test(+ "[POST]::/account/:account_id/connectors/:connector_id - Content-Type is application/json",+ function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+ },+);++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// pm.collectionVariables - Set merchant_connector_id as variable for jsonData.merchant_connector_id+if (jsonData?.merchant_connector_id) {+ pm.collectionVariables.set(+ "merchant_connector_id",+ jsonData.merchant_connector_id,+ );+ console.log(+ "- use {{merchant_connector_id}} as collection variable for value",+ jsonData.merchant_connector_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{merchant_connector_id}}, as jsonData.merchant_connector_id is undefined.",+ );+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/request.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/request.jsonnew file mode 100644index 0000000000..5328f86fbc--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/request.json@@ -0,0 +1,122 @@+{+ "auth": {+ "type": "apikey",+ "apikey": [+ {+ "key": "value",+ "value": "{{admin_api_key}}",+ "type": "string"+ },+ {+ "key": "key",+ "value": "api-key",+ "type": "string"+ },+ {+ "key": "in",+ "value": "header",+ "type": "string"+ }+ ]+ },+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "connector_type": "fiz_operations",+ "connector_account_details": {+ "auth_type": "HeaderKey",+ "api_key": "wrongAPIKey"+ },+ "test_mode": false,+ "disabled": false,+ "payment_methods_enabled": [+ {+ "payment_method": "card",+ "payment_method_types": [+ {+ "payment_method_type": "credit",+ "card_networks": ["Visa", "Mastercard"],+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ },+ {+ "payment_method_type": "debit",+ "card_networks": ["Visa", "Mastercard"],+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ }+ ]+ },+ {+ "payment_method": "pay_later",+ "payment_method_types": [+ {+ "payment_method_type": "klarna",+ "payment_experience": "redirect_to_url",+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ },+ {+ "payment_method_type": "affirm",+ "payment_experience": "redirect_to_url",+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ },+ {+ "payment_method_type": "afterpay_clearpay",+ "payment_experience": "redirect_to_url",+ "minimum_amount": 1,+ "maximum_amount": 68607706,+ "recurring_enabled": true,+ "installment_payment_enabled": true+ }+ ]+ }+ ],+ "metadata": {+ "city": "NY",+ "unit": "245"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/account/:account_id/connectors/:connector_id",+ "host": ["{{baseUrl}}"],+ "path": ["account", ":account_id", "connectors", ":connector_id"],+ "variable": [+ {+ "key": "account_id",+ "value": "{{merchant_id}}"+ },+ {+ "key": "connector_id",+ "value": "{{merchant_connector_id}}"+ }+ ]+ },+ "description": "To update an existing Payment Connector. Helpful in enabling / disabling different payment methods and other settings for the connector etc"+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/response.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/response.json@@ -0,0 +1 @@+[]diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/.event.meta.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/.event.meta.jsonnew file mode 100644index 0000000000..0731450e6b--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/.event.meta.json@@ -0,0 +1,3 @@+{+ "eventOrder": ["event.test.js"]+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/event.test.js b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/event.test.jsnew file mode 100644index 0000000000..e75cb69a92--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/event.test.js@@ -0,0 +1,56 @@+// Validate status 2xx+pm.test("[POST]::/payments - Status code is 2xx", function () {+ pm.response.to.be.success;+});++// Validate if response header has matching content-type+pm.test("[POST]::/payments - Content-Type is application/json", function () {+ pm.expect(pm.response.headers.get("Content-Type")).to.include(+ "application/json",+ );+});++// Validate if response has JSON Body+pm.test("[POST]::/payments - Response has JSON Body", function () {+ pm.response.to.have.jsonBody();+});++++// Set response object as internal variable+let jsonData = {};+try {+ jsonData = pm.response.json();+} catch (e) {}++// Validate error message in the JSON Body+pm.test("[POST]::/payments - Validate error message", function () {+ pm.expect(jsonData.error_message).to.not.be.null+});++// pm.collectionVariables - Set payment_id as variable for jsonData.payment_id+if (jsonData?.payment_id) {+ pm.collectionVariables.set("payment_id", jsonData.payment_id);+ console.log(+ "- use {{payment_id}} as collection variable for value",+ jsonData.payment_id,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{payment_id}}, as jsonData.payment_id is undefined.",+ );+}+++// pm.collectionVariables - Set client_secret as variable for jsonData.client_secret+if (jsonData?.client_secret) {+ pm.collectionVariables.set("client_secret", jsonData.client_secret);+ console.log(+ "- use {{client_secret}} as collection variable for value",+ jsonData.client_secret,+ );+} else {+ console.log(+ "INFO - Unable to assign variable {{client_secret}}, as jsonData.client_secret is undefined.",+ );+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/request.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/request.jsonnew file mode 100644index 0000000000..525eaa739e--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/request.json@@ -0,0 +1,90 @@+{+ "method": "POST",+ "header": [+ {+ "key": "Content-Type",+ "value": "application/json"+ },+ {+ "key": "Accept",+ "value": "application/json"+ }+ ],+ "body": {+ "mode": "raw",+ "options": {+ "raw": {+ "language": "json"+ }+ },+ "raw_json_formatted": {+ "amount": 6540,+ "currency": "USD",+ "confirm": true,+ "capture_method": "automatic",+ "capture_on": "2022-09-10T10:11:12Z",+ "amount_to_capture": 6540,+ "customer_id": "StripeCustomer",+ "email": "[email protected]",+ "name": "John Doe",+ "phone": "999999999",+ "phone_country_code": "+1",+ "description": "Its my first payment request",+ "authentication_type": "no_three_ds",+ "return_url": "https://duck.com",+ "payment_method": "card",+ "payment_method_data": {+ "card": {+ "card_number": "4242424242424242",+ "card_exp_month": "10",+ "card_exp_year": "25",+ "card_holder_name": "joseph Doe",+ "card_cvc": "123"+ }+ },+ "routing": {+ "type": "single",+ "data": "multisafepay"+ },+ "billing": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "someone",+ "last_name": "happy"+ }+ },+ "shipping": {+ "address": {+ "line1": "1467",+ "line2": "Harrison Street",+ "line3": "Harrison Street",+ "city": "San Fransico",+ "state": "California",+ "zip": "94122",+ "country": "US",+ "first_name": "someone",+ "last_name": "happy"+ }+ },+ "statement_descriptor_name": "joseph",+ "statement_descriptor_suffix": "JS",+ "metadata": {+ "udf1": "value1",+ "new_customer": "true",+ "login_date": "2019-09-10T10:11:12Z"+ }+ }+ },+ "url": {+ "raw": "{{baseUrl}}/payments",+ "host": ["{{baseUrl}}"],+ "path": ["payments"]+ },+ "description": "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"+}diff --git a/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/response.json b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/response.jsonnew file mode 100644index 0000000000..fe51488c70--- /dev/null+++ b/postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payments - Create/response.json@@ -0,0 +1 @@+[]