Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Cancel Order

1) Purpose

  • 채널에서 발생한 여행자 구매자의 주문 취소에 대해 AX Cloud 에 요청 합니다.

  • 해당 요청으로 채널에서 발생한 취소를 처리할 수 있습니다.

  • 주문 전체 취소가 아니라 부분 취소를 원하면 티켓 단위로 취소할 수 있습니다. 주문 - 투어상품 주문 부분 취소 요청

  • 채널에서 구매자의 주문 취소를 확정 후 AX Cloud와 동기화하기 위해 사용합니다.

Drawio
mVer2
zoom1
simple0
inComment0
pageId399441934
custContentId400556600
lbox1
diagramDisplayName제목 없는 다이어그램-1679529724776.drawio
contentVer1
revision2
baseUrlhttps://axchange.atlassian.net/wiki
diagramName제목 없는 다이어그램-1679529724776.drawio
pCenter0
width627
links
tbstyle
height311

...

  • AX 내부 주문 상태

  • 취소하고자 하는 주문 상태를 입력

  • 주문의 상태는 아래와 같습니다.

    Name

    Required

    Type

    Description

    ax_status

    O

    String

    • "New" : 새 주문
      "Traveler cancel" : 여행자 취소
      "Unavoidable cancel" : 불가피한 취소

    channel_status

    O

    String

    • 채널 내부 주문 상태

    • 취소하고자 AX 측에 동기화하고자 하는 주문 상태를 입력

    • 주문의 상태는 아래와 같습니다.

      • "New" : 새 주문
        "Traveler cancel" : 여행자 취소
        "Unavoidable cancel" : 불가피한 취소

    comment

    X

    String

    • 상태 변경 시 남길 주석

    3) Response

    Name

    Type

    Description

    status_code

    Integer

    정상 처리 시 200

    data

    Object

    -

    channel_order_code

    String

    채널의 취소된 주문의 식별자

    channel_order_status

    String

    취소된 Channel의 주문 상태

    ax

    List[Object]

    -

    ax_order_code

    String

    AX의 취소된 주문의 식별자

    ax_order_status

    String

    취소된 AX의 주문 상태

    ...

    Expand
    titleStatus Code : 403 Cause: 유효하지 않은 API Key 혹은 Channel Code
    Code Block
    {'detail': '이 작업을 수행할 권한(permission)이 없습니다.'}

    ...

    Code Block
    curl -X 'PATCH' \
      'https://test.ax-cloud.com/v1/channel/orders/tour/915c1218-f41c-492b-bb0b-96177ff4d2ee' \
      -H 'accept: application/json' \
      -H 'Content-Type: application/json' \
      -H "Authorization: Token api_key_secret" \
      -d '{
      "channel_order_code": "915c1218-f41c-492b-bb0b-96177ff4d2ee",
      "channel_order_status": "Traveler cancel",
      "ax_order_code": "b9872ed4-12c5-4fb5-ae18-4f39b11ee912",
      "ax_order_status": "Traveler cancel",
      "comment": "여행자의 개인 사정으로 인한 취소"
    }'

    ...