Method: acceptRemittanceStatementWithModifications

VAT 재분류 수수료와 같이 명세서가 수정된 후에 이 요청에 표시된 명세서가 결제된다는 사실을 Google에 알립니다.

이 메서드가 HTTP 200을 반환하지 않는 경우 이 쿼리에 대한 응답이 비어 있을 수 있습니다. 명확한 설명이 있는 ErrorResponse를 사용하여 공격자가 다른 통합업체의 결제 통합업체 계정 식별자를 파악할 수 있는 경우에는 입력란이 비어 있습니다. 서명 키가 일치하지 않거나 암호화 키를 알 수 없는 이러한 상황에서는 이 메서드는 본문이 비어 있는 HTTP 404를 반환합니다.

요청의 예는 다음과 같습니다.


{
  "requestHeader": {
    "protocolVersion": {
      "major": 1,
      "minor": 0,
      "revision": 0
    },
    "requestId": "0123434-abc",
    "requestTimestamp": "1502545413098"
  },
  "paymentIntegratorAccountId": "InvisiCashUSA_USD",
  "statementId": "0123434-statement-abc",
  "feeToVatModification": {
    "vatToFeeRatioInMicros": "150000"
  }
}

응답의 예는 다음과 같습니다.


{
  "responseHeader": {
    "responseTimestamp": "1519996752221"
  },
  "acceptRemittanceStatementWithModificationsResultCode": "SUCCESS"
}

HTTP 요청

POST https://vgw.googleapis.com/secure-serving/gsp/v1/acceptRemittanceStatementWithModifications/:PIAID

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "requestHeader": {
    object (RequestHeader)
  },
  "paymentIntegratorAccountId": string,
  "statementId": string,

  // Union field modification_type can be only one of the following:
  "feeToVatModification": {
    object (FeeToVATModification)
  }
  // End of list of possible types for union field modification_type.
}
필드
requestHeader

object (RequestHeader)

필수: 모든 요청의 공통 헤더입니다.

paymentIntegratorAccountId

string

필수: 이 명세서의 계약상 제약 조건을 식별하는 결제 통합업체 계정 식별자입니다.

statementId

string

필수: 이 요청에서 수정하는 문 알림의 요청 ID입니다.

통합 필드 modification_type.

modification_type는 다음 중 하나여야 합니다.

feeToVatModification

object (FeeToVATModification)

필수: 수수료 중 일부를 부가가치세 (VAT)로 재할당하기 위한 수정을 요청했습니다.

응답 본문

acceptRemittanceStatementWithModifications 메서드의 응답 객체입니다.

성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.

JSON 표현
{
  "responseHeader": {
    object (ResponseHeader)
  },
  "acceptRemittanceStatementWithModificationsResultCode": enum (AcceptRemittanceStatementWithModificationsResultCode)
}
필드
responseHeader

object (ResponseHeader)

필수: 모든 응답의 공통 헤더입니다.

acceptRemittanceStatementWithModificationsResultCode

enum (AcceptRemittanceStatementWithModificationsResultCode)

필수: v1.acceptRemittanceStatement 호출의 결과입니다.

FeeToVATModification

이 객체는 송금 명세서에 적용될 세금 수정을 제공합니다.

JSON 표현
{
  "vatToFeeRatioInMicros": string
}
필드
vatToFeeRatioInMicros

string (Int64Value format)

필수: 수수료 금액에 대한 VAT의 비율입니다(마이크로 단위). VAT로 재할당할 수수료 비율이며 0 이상이어야 합니다. 반올림은 '반짝 짝수' 또는 '뱅커' 반올림이어야 합니다. 즉, 두 숫자가 같은 거리인 경우 짝수 이웃으로 반올림합니다 (예: 2.5 -> 2, 5.5 -> 6).

세금 계산 샘플은 다음과 같습니다.

  • 결제 통합업체에서 부과하는 세금 포함 처리 수수료: 1,000달러
  • 세율: 10%
  • 따라서 1, 000 USD = (처리 수수료) + (10% * 처리 수수료)
  • 처리 수수료(세금 제외) = 1,000 / 1.1 = 909.090909(USD)
  • 결제 통합업체가 납부한 세금 = 1000 - 909.090909 = 90.909091 USD
  • vatToFeeRatioInMicros = (90.909091 / 1,000) * 1000000 = 90909.091
  • 90909.091에서 2분의 1 반올림 = 90909

AcceptRemittanceStatementWithModificationsResultCode

열거형
UNKNOWN_RESULT 이 기본값을 설정해서는 안 됩니다.
SUCCESS 송금 명세서가 수정되었으나 수락되었습니다.
INVALID_VAT_MODIFICATION 잘못된 요청으로 인해 VAT 수정이 수락되지 않았습니다.