openapi: 3.0.0
info:
contact:
name: MX Platform API
url: https://www.mx.com/products/platform-api
description: '
The MX Platform API is a powerful, fully-featured API designed to make
aggregating and enhancing financial data easy and reliable. It can
seamlessly connect your app or website to tens of thousands of financial
institutions.'
title: MX Platform Taggings API
version: 0.1.0
servers:
- url: https://api.mx.com
- url: https://int-api.mx.com
security:
- basicAuth: []
tags:
- name: Taggings
paths:
/users/{user_guid}/taggings:
get:
description: Use this endpoint to retrieve a list of all the taggings associated with a specific user.
operationId: listTaggings
parameters:
- description: Specify current page.
example: 1
in: query
name: page
schema:
type: integer
- description: Specify records per page.
example: 10
in: query
name: records_per_page
schema:
type: integer
- description: The unique id for a `user`.
example: USR-fa7537f3-48aa-a683-a02a-b18940482f54
in: path
name: user_guid
required: true
schema:
type: string
responses:
'200':
content:
application/vnd.mx.api.v1+json:
schema:
$ref: '#/components/schemas/TaggingsResponseBody'
description: OK
summary: List taggings
tags:
- Taggings
post:
description: Use this endpoint to create a new association between a tag and a particular transaction, according to their unique GUIDs.
operationId: createTagging
parameters:
- description: The unique id for a `user`.
example: USR-fa7537f3-48aa-a683-a02a-b18940482f54
in: path
name: user_guid
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TaggingCreateRequestBody'
description: Tagging object to be created with required parameters (tag_guid and transaction_guid)
required: true
responses:
'200':
content:
application/vnd.mx.api.v1+json:
schema:
$ref: '#/components/schemas/TaggingResponseBody'
description: Accepted
summary: Create tagging
tags:
- Taggings
/users/{user_guid}/taggings/{tagging_guid}:
delete:
description: Use this endpoint to delete a tagging according to its unique GUID. If successful, the API will respond with an empty body and a status of 204 NO Content.
operationId: deleteTagging
parameters:
- description: The unique id for a `tagging`.
example: TGN-007f5486-17e1-45fc-8b87-8f03984430fe
in: path
name: tagging_guid
required: true
schema:
type: string
- description: The unique id for a `user`.
example: USR-fa7537f3-48aa-a683-a02a-b18940482f54
in: path
name: user_guid
required: true
schema:
type: string
responses:
'204':
description: No Content
summary: Delete tagging
tags:
- Taggings
get:
description: Use this endpoint to read the attributes of a `tagging` according to its unique GUID.
operationId: readTagging
parameters:
- description: The unique id for a `tagging`.
example: TGN-007f5486-17e1-45fc-8b87-8f03984430fe
in: path
name: tagging_guid
required: true
schema:
type: string
- description: The unique id for a `user`.
example: USR-fa7537f3-48aa-a683-a02a-b18940482f54
in: path
name: user_guid
required: true
schema:
type: string
responses:
'200':
content:
application/vnd.mx.api.v1+json:
schema:
$ref: '#/components/schemas/TaggingResponseBody'
description: OK
summary: Read tagging
tags:
- Taggings
put:
description: Use this endpoint to update a tagging.
operationId: updateTagging
parameters:
- description: The unique id for a `tagging`.
example: TGN-007f5486-17e1-45fc-8b87-8f03984430fe
in: path
name: tagging_guid
required: true
schema:
type: string
- description: The unique id for a `user`.
example: USR-fa7537f3-48aa-a683-a02a-b18940482f54
in: path
name: user_guid
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TaggingUpdateRequestBody'
description: Tagging object to be updated with required parameter (tag_guid)
required: true
responses:
'200':
content:
application/vnd.mx.api.v1+json:
schema:
$ref: '#/components/schemas/TaggingResponseBody'
description: OK
summary: Update tagging
tags:
- Taggings
components:
schemas:
TaggingUpdateRequest:
properties:
tag_guid:
example: TAG-40faf068-abb4-405c-8f6a-e883ed541fff
type: string
required:
- tag_guid
type: object
TaggingsResponseBody:
properties:
pagination:
$ref: '#/components/schemas/PaginationResponse'
taggings:
items:
$ref: '#/components/schemas/TaggingResponse'
type: array
type: object
TaggingUpdateRequestBody:
properties:
tagging:
$ref: '#/components/schemas/TaggingUpdateRequest'
type: object
PaginationResponse:
properties:
current_page:
example: 1
type: integer
per_page:
example: 25
type: integer
total_entries:
example: 1
type: integer
total_pages:
example: 1
type: integer
type: object
TaggingResponseBody:
properties:
tagging:
$ref: '#/components/schemas/TaggingResponse'
type: object
TaggingCreateRequestBody:
properties:
tagging:
$ref: '#/components/schemas/TaggingCreateRequest'
type: object
TaggingResponse:
properties:
guid:
example: TGN-007f5486-17e1-45fc-8b87-8f03984430fe
nullable: true
type: string
member_is_managed_by_user:
example: false
nullable: true
type: boolean
tag_guid:
example: TAG-40faf068-abb4-405c-8f6a-e883ed541fff
nullable: true
type: string
transaction_guid:
example: TRN-810828b0-5210-4878-9bd3-f4ce514f90c4
nullable: true
type: string
user_guid:
example: USR-11141024-90b3-1bce-cac9-c06ced52ab4c
nullable: true
type: string
type: object
TaggingCreateRequest:
properties:
tag_guid:
example: TAG-40faf068-abb4-405c-8f6a-e883ed541fff
type: string
transaction_guid:
example: TRN-810828b0-5210-4878-9bd3-f4ce514f90c4
type: string
required:
- tag_guid
- transaction_guid
type: object
securitySchemes:
basicAuth:
scheme: basic
type: http